/* Thesis page styles */

.page-hero { 
    background: linear-gradient(135deg, #f0f7ff, #f7fbff); 
    padding: 3.5rem 0; 
    text-align: center; 
    border-bottom: 1px solid #e5e9f0;
}
.page-hero .page-title { 
    font-size: 36px; 
    margin-bottom: 12px; 
    color: #1a2a3a;
    font-weight: 700;
}
.page-hero .page-subtitle { 
    color: #6b7b89; 
    max-width: 800px; 
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.6;
}

.thesis-content { 
    padding: 2.5rem 0; 
}

/* Search Bar */
.archive-filters { 
    margin-bottom: 20px; 
}
.archive-filters .search-wrap { 
    position: relative;
    max-width: 100%;
}
.archive-filters .search-wrap .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}
.archive-filters .search-wrap input[type="search"] { 
    width: 100%; 
    padding: 12px 14px 12px 42px; 
    border-radius: 8px; 
    border: 1px solid #e0e5eb; 
    background: #fff; 
    font-size: 15px;
    transition: all 0.2s ease;
}
.archive-filters .search-wrap input[type="search"]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.archive-filters .search-wrap input[type="search"]::placeholder {
    color: #9ca3af;
}

/* Filter Toolbar */
.filters-toolbar {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 16px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.filter-form {
    display: flex;
    align-items: center;
}

.filter-group { 
    display: flex; 
    gap: 8px; 
    align-items: center;
    padding: 8px 12px;
    background: #fff;
}

.filter-icon {
    color: #6b7b89;
    flex-shrink: 0;
}

.filter-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-right: 4px;
}

.filter-chip { 
    -webkit-appearance: none; 
    appearance: none; 
    border: none; 
    padding: 6px 14px; 
    border-radius: 33554400px; 
    background: #f3f4f6; 
    cursor: pointer; 
    color: #374151; 
    font-size: 14px; 
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.filter-chip:hover { 
    background: #e5e7eb;
    transform: translateY(-1px);
}
.filter-chip.active { 
    background: #154D8C; 
    color: #fff;
    font-weight: 600;
}
.filter-chip[disabled] { 
    opacity: 0.5; 
    cursor: not-allowed; 
}

/* Results Count */
.results-count {
    margin-bottom: 20px;
}
.results-count p {
    font-size: 14px;
    color: #6b7b89;
    margin: 0;
}

/* Thesis Grid */
.posts-grid.thesis-grid { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 20px;
    max-width: 100%;
    transition: opacity 0.3s ease;
}

.posts-grid.thesis-grid.loading {
    pointer-events: none;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #6b7b89;
}

.no-results p {
    font-size: 16px;
    margin: 0;
}

/* Thesis Card */
.thesis-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e9f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 0;
    align-items: stretch;
    padding: 0;
    position: relative;
    transition: all 0.2s ease;
}
.thesis-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.thesis-card-main {
    flex: 1;
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.thesis-card-header {
    margin-bottom: 0;
}

.thesis-title {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
}
.thesis-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}
.thesis-title a:hover {
    color: #154D8C;
}

.thesis-meta-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    font-size: 14px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.01em;
}
.status-badge.status-ongoing {
    background: #154D8C;
    color: #fff;
}
.status-badge.status-completed {
    background: #154D8C;
    color: #fff;
}

.thesis-year-range {
    color: #6b7b89;
    font-size: 14px;
}
.thesis-year-range::before {
    content: '•';
    margin-right: 10px;
    color: #d1d5db;
}

.thesis-category {
    background: #eff6ff;
    color: #154D8C;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

.thesis-description {
    color: #4b5563;
    font-size: 15px;
    line-height: 1.6;
}

/* Thesis Info Box */
.thesis-info-box {
    background: #f9fafb;
    border-radius: 8px;
    padding: 20px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.info-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.info-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.info-icon {
    color: #6b7b89;
    flex-shrink: 0;
    margin-top: 2px;
}

.info-content {
    flex: 1;
}

.info-label {
    color: #6b7b89;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 2px;
}

.info-value {
    color: #111827;
    font-size: 14px;
    font-weight: 600;
}

/* Card Actions */
.thesis-card-actions {
    padding-top: 8px;
}

.btn-view-details {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #154D8C;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-view-details:hover {
    background: #0f3a66;
    color: #fff !important;
    transform: translateX(2px);
}

.btn-view-details svg {
    transition: transform 0.2s ease;
}

.btn-view-details:hover svg {
    transform: translateX(2px);
}

/* Year Badge */
.thesis-year-badge {
    position: absolute;
    top: 28px;
    right: 32px;
    background: #154D8C1A;
    border: 2px solid #154D8C33;
    border-radius: 8px;
    padding: 10px;
}

.year-badge-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
}

.year-number {
    font-weight: 800;
    color: #154D8C;
    font-size: 28px;
    line-height: 1;
}

.year-text {
    font-size: 12px;
    color: #6b7b89;
    margin-top: 4px;
    font-weight: 500;
}

/* Mobile Year Badge (hidden on desktop) */
.thesis-year-badge-phone {
    display: none;
}

/* Responsive */
@media (max-width: 900px) {
    .thesis-card {
        flex-direction: column;
    }
    
    .thesis-card-main {
        padding: 24px;
    }
    
    .thesis-info-box {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px 20px;
    }
    
    .thesis-year-badge {
        width: 100%;
        min-width: auto;
        border-left: none;
        border-top: 1px solid #e5e9f0;
        padding: 16px;
        justify-content: flex-end;
    }
    
    .year-badge-inner {
        padding: 12px 16px;
    }
    
    .year-number {
        font-size: 24px;
    }
}

@media (max-width: 640px) {
    .page-hero {
        padding: 2.5rem 0;
    }
    
    .page-hero .page-title {
        font-size: 28px;
    }
    
    .filters-toolbar {
        flex-direction: column;
        gap: 12px;
    }
    
    .filter-group {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .thesis-card-main {
        padding: 20px;
        gap: 12px;
    }
    
    .thesis-title {
        font-size: 18px;
    }
    
    .thesis-info-box {
        padding: 14px 16px;
    }
    
    /* Hide desktop year badge */
    .thesis-year-badge {
        display: none;
    }
    
    /* Show mobile year badge */
    .thesis-year-badge-phone {
        display: flex;
        justify-content: start;
        padding-top: 16px;
        border-top: 1px solid #e5e9f0;
    }
    
    .thesis-year-badge-phone .year-badge-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: #154D8C1A;
        border: 2px solid #154D8C33;
        border-radius: 8px;
        width: 100px;
        height: 100px;
        padding: 10px;
    }
}
