/* kstorytelling-ui/assets/css/style.css */
body.kst-custom-ui {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: #f9f9fb;
    color: #333;
}

.kst-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.kst-sidebar {
    width: 100px;
    background: #fff;
    border-right: 1px solid #eaeaea;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.kst-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #555;
    padding: 15px 5px;
    width: 100%;
    border-left: 3px solid transparent;
    transition: all 0.2s;
    font-size: 12px;
    text-align: center;
}

.kst-menu-item i {
    font-size: 24px;
    margin-bottom: 5px;
    color: #888;
}

.kst-menu-item span {
    font-weight: 600;
}

.kst-menu-item small {
    font-size: 10px;
    color: #999;
}

.kst-menu-item.active {
    background-color: #f0f4f8;
    border-left-color: #2c3e50;
    color: #2c3e50;
}

.kst-menu-item.active i {
    color: #2c3e50;
}

/* Main Content */
.kst-main {
    flex: 1;
    margin-left: 100px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Header */
.kst-header {
    height: 60px;
    background: #fff;
    border-bottom: 1px solid #eaeaea;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.kst-logo h1 {
    font-size: 20px;
    margin: 0;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.kst-logo h1 span {
    font-size: 12px;
    color: #888;
    font-weight: 400;
}

.kst-header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.kst-user-mode {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

/* Toggle Switch */
.kst-switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 20px;
}
.kst-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.kst-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 20px;
}
.kst-slider:before {
    position: absolute;
    content: "";
    height: 16px; width: 16px;
    left: 2px; bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
.kst-switch input:checked + .kst-slider {
    background-color: #4a5568;
}
.kst-switch input:checked + .kst-slider:before {
    transform: translateX(14px);
}
.kst-mode-text { font-weight: 600; }

.kst-search {
    position: relative;
    display: flex;
    align-items: center;
}

.kst-search input {
    padding: 6px 30px 6px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #f5f5f5;
    outline: none;
}

.kst-search i {
    position: absolute;
    right: 12px;
    color: #888;
}

.kst-login a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

/* Content Area */
.kst-content {
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* Hero */
.kst-hero {
    background: linear-gradient(135deg, #e0f2fe 0%, #d1fae5 100%);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    margin-bottom: 30px;
    /* You can add a background image here later */
}

.kst-hero-content h2 {
    font-size: 28px;
    margin: 0 0 10px 0;
    font-weight: 800;
}

.kst-hero-content h3 {
    font-size: 20px;
    margin: 0 0 10px 0;
    color: #555;
}

.kst-hero-content p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* Info Form Grid */
.kst-info-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.kst-guide-box {
    background-color: #dbeafe;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
}

.kst-guide-box h4 {
    margin: 0 0 20px 0;
    font-size: 18px;
}

.kst-guide-items {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.kst-guide-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.kst-guide-item i {
    font-size: 32px;
    color: #4b5563;
    margin-bottom: 10px;
}

.kst-guide-item p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    color: #374151;
    font-weight: 500;
}

.kst-finder-box {
    background-color: #d1fae5;
    border-radius: 12px;
    padding: 25px;
}

.kst-finder-box h4 {
    margin: 0 0 20px 0;
    font-size: 18px;
    text-align: center;
}

.kst-form-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.kst-form-group label {
    width: 180px;
    font-size: 14px;
    font-weight: 500;
}

.kst-input-line {
    flex: 1;
    border: none !important;
    border-bottom: 1px solid #333 !important;
    background: transparent !important;
    border-radius: 0 !important;
    padding: 5px 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

.kst-btn-submit {
    width: 100%;
    background: #4b5563;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}

/* Featured Cards */
.kst-featured-section h4 {
    text-align: center;
    font-size: 20px;
    margin-bottom: 20px;
}

.kst-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.kst-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.kst-card-thumb {
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: #eee;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kst-card-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
}

.kst-badge-media {
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.kst-badge-blog {
    background: #22c55e;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.kst-play-icon {
    font-size: 40px;
    color: rgba(255,255,255,0.8);
}

.kst-card-body {
    padding: 15px;
}

.kst-card-title {
    margin: 0 0 15px 0;
    font-size: 16px;
    line-height: 1.4;
}

.kst-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #666;
}

.kst-avatars {
    display: flex;
}

.kst-avatars img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-left: -8px;
    border: 2px solid #fff;
    background: #ccc;
}
.kst-avatars img:first-child { margin-left: 0; }

/* Single Article Styling */
.kst-single-content {
    background: white;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.kst-article-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.kst-article-title {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.kst-article-meta {
    font-size: 14px;
    color: #666;
    display: flex;
    gap: 20px;
}

.kst-article-body {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.kst-article-body p {
    margin-bottom: 20px;
}

.kst-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}
