/* ===========================
   CANLI GRADIENT AKADEMIK TEMA
   Doğru HTML class isimleriyle
   =========================== */

:root {
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --primary-light: #6b83f2;
    --accent: #7209b7;
    --accent-light: #9b4dca;
    --gradient: linear-gradient(135deg, #4361ee 0%, #7209b7 100%);
    --gradient-hero: linear-gradient(135deg, #0891b2 0%, #2563eb 50%, #4f46e5 100%);
    --bg-body: #f0f2f8;
    --bg-white: #ffffff;
    --text-dark: #1a1a2e;
    --text-mid: #555770;
    --text-muted: #8b8fa8;
    --border: rgba(67, 97, 238, 0.12);
    --shadow-sm: 0 2px 8px rgba(67, 97, 238, 0.08);
    --shadow-md: 0 4px 20px rgba(67, 97, 238, 0.12);
    --shadow-lg: 0 8px 40px rgba(67, 97, 238, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --ease: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === BASE === */
* { box-sizing: border-box; }

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    background: var(--bg-body);
    line-height: 1.7;
    font-size: 16px;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--ease);
}
a:hover { color: var(--accent); }

/* === NAVBAR === */
.navbar {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, var(--primary), var(--accent), transparent) 1;
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 2px 20px rgba(67, 97, 238, 0.08);
    transition: all var(--ease);
}

.navbar-brand {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.brand-name {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text-dark);
    letter-spacing: -0.01em;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
}

.navbar-nav .nav-link {
    color: var(--text-mid) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-sm);
    transition: all var(--ease);
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary) !important;
    background: rgba(67, 97, 238, 0.08);
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--gradient);
    border-radius: 2px;
}

.lang-toggle .btn {
    border-radius: 20px;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    font-weight: 600;
}

.lang-toggle .btn-primary {
    background: var(--gradient) !important;
    border: none !important;
}

.navbar-toggler {
    border: 1px solid var(--border);
    padding: 0.4rem 0.6rem;
}

/* === HERO SECTION (.hero) === */
.hero {
    background: var(--gradient-hero);
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -15%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-30px); }
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.hero-photo {
    flex-shrink: 0;
}

.hero-photo img,
.hero-photo .profile-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255,255,255,0.35);
    box-shadow: 0 8px 40px rgba(0,0,0,0.25), 0 0 60px rgba(67,97,238,0.3);
    transition: transform var(--ease), box-shadow var(--ease);
}

.hero-photo img:hover,
.hero-photo .profile-photo:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 12px 50px rgba(0,0,0,0.3), 0 0 80px rgba(114,9,183,0.3);
}

.hero-text { color: #fff; }

.hero-text h1,
.hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.hero-title {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.hero-subtitle {
    font-size: 1rem;
    color: rgba(255,255,255,0.75);
}

/* === STATS SECTION === */
.stats-section {
    margin-top: -2.5rem;
    position: relative;
    z-index: 10;
    padding-bottom: 2rem;
}

.stat-item {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    transition: all var(--ease);
}

.stat-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.25rem;
}

/* === PAGE HEADER === */
.page-header {
    background: var(--gradient-hero);
    padding: 3rem 0 2.5rem;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -15%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.page-header h1 {
    color: #fff;
    font-size: 2.25rem;
    font-weight: 800;
    margin: 0;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.page-header p {
    color: rgba(255,255,255,0.8);
    margin: 0.5rem 0 0;
    position: relative;
    z-index: 1;
}

.page-header .breadcrumb { margin-bottom: 0.5rem; position: relative; z-index: 1; }
.page-header .breadcrumb-item a { color: rgba(255,255,255,0.7); }
.page-header .breadcrumb-item.active { color: rgba(255,255,255,0.95); }

/* === CONTENT SECTIONS === */
.content-section {
    padding: 3.5rem 0;
}

.alt-bg {
    background: rgba(67, 97, 238, 0.03);
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.section-title i {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-divider {
    border: none;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent), transparent);
    margin-bottom: 2rem;
    border-radius: 2px;
}

.bio-text {
    color: var(--text-mid);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* === RESEARCH AREAS === */
.research-areas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.research-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(67, 97, 238, 0.08);
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--ease);
    border: 1px solid transparent;
    cursor: default;
}

.research-badge:hover {
    background: var(--gradient);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
    border-color: transparent;
}

.research-badges .badge {
    background: rgba(67, 97, 238, 0.08) !important;
    color: var(--primary) !important;
    padding: 0.4rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--ease);
}

.research-badges .badge:hover {
    background: var(--gradient) !important;
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

/* === PUBLICATION ENTRIES === */
.pub-entry {
    display: flex;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all var(--ease);
    border-left: 5px solid var(--primary);
    position: relative;
    overflow: hidden;
}

.pub-entry::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--gradient);
    opacity: 0;
    transition: opacity var(--ease);
}

.pub-entry:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--accent);
}

.pub-entry:hover::before { opacity: 1; }

.pub-year {
    flex-shrink: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    min-width: 50px;
    padding-top: 2px;
}

.pub-details { flex: 1; }

.pub-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.35rem;
    line-height: 1.45;
}

.pub-authors {
    color: var(--text-mid);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.pub-journal {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.pub-link,
.pub-doi-link {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--primary);
    margin-right: 0.75rem;
    margin-bottom: 0.5rem;
    transition: color var(--ease);
}

.pub-link:hover,
.pub-doi-link:hover { color: var(--accent); }

.pub-type-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 25px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-right: 0.5rem;
}

.badge-article {
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary);
}

.badge-conference {
    background: rgba(114, 9, 183, 0.1);
    color: var(--accent);
}

/* === PUB GALLERY === */
.pub-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.pub-gallery-item img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
    transition: all var(--ease);
}

.pub-gallery-item img:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

/* === PROJECT/COURSE DETAIL CARDS === */
.project-detail-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all var(--ease);
    height: 100%;
}

.project-detail-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.project-detail-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(67,97,238,0.04) 0%, rgba(114,9,183,0.04) 100%);
}

.project-detail-title-area {
    margin-bottom: 0.5rem;
}

.project-detail-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.4;
}

.project-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.project-detail-body {
    padding: 1.25rem 1.5rem;
}

.course-level {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.level-undergrad {
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary);
}

.level-masters {
    background: rgba(114, 9, 183, 0.1);
    color: var(--accent);
}

.level-phd {
    background: rgba(86, 11, 173, 0.1);
    color: #560bad;
}

.course-semester {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(67, 97, 238, 0.06);
    color: var(--text-mid);
}

.year-group {
    margin-bottom: 2rem;
}

.year-heading {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid;
    border-image: var(--gradient) 1;
    display: inline-block;
}

/* === PROJECT CAROUSEL === */
.project-carousel {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    max-width: 600px;
    margin: 0 auto;
}

.project-carousel .carousel-item img {
    border-radius: var(--radius-md);
    max-height: 350px;
    width: 100%;
    object-fit: contain;
}

.project-carousel .carousel-control-prev,
.project-carousel .carousel-control-next {
    width: 36px;
    height: 36px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(67, 97, 238, 0.85);
    border-radius: 50%;
    opacity: 0;
    transition: opacity var(--ease);
}

.project-carousel .carousel-control-prev {
    left: 6px;
}

.project-carousel .carousel-control-next {
    right: 6px;
}

.project-carousel:hover .carousel-control-prev,
.project-carousel:hover .carousel-control-next {
    opacity: 1;
}


/* === COURSE ACCORDION === */
.course-accordion {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.course-accordion .accordion-item {
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.course-accordion .accordion-item:last-child {
    border-bottom: none;
}

.course-accordion .accordion-button {
    padding: 1rem 1.25rem;
    background: #fff;
    font-weight: 600;
    box-shadow: none;
}

.course-accordion .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.05), rgba(37, 99, 235, 0.05));
    color: var(--primary);
}

.course-accordion .accordion-button::after {
    flex-shrink: 0;
    margin-left: auto;
}

.course-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.course-accordion-title {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
    padding-right: 1rem;
}

.course-code-badge {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.course-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.course-accordion-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.level-associate {
    background: #06b6d4;
    color: #fff;
}

.course-accordion .accordion-body {
    padding: 1.25rem;
    background: #fafbfc;
    border-top: 1px solid rgba(0,0,0,0.04);
}

.course-description {
    color: var(--text-mid);
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* === COURSE DOCUMENTS === */
.course-documents {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(67, 97, 238, 0.03);
    border-radius: var(--radius-md);
}

.documents-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-mid);
    margin-bottom: 0.75rem;
}

.documents-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.document-detail {
    display: block;
    font-size: 0.8rem;
    color: var(--text-mid);
    line-height: 1.4;
    margin-top: 2px;
}

.document-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text-dark);
    transition: all var(--ease);
}

.document-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
    color: var(--primary);
}

.document-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(67, 97, 238, 0.08);
    font-size: 1.1rem;
}

.document-icon .bi-file-earmark-pdf { color: #dc3545; }
.document-icon .bi-file-earmark-word { color: #0d6efd; }
.document-icon .bi-file-earmark-excel { color: #198754; }
.document-icon .bi-file-earmark-ppt { color: #fd7e14; }
.document-icon .bi-file-earmark-text { color: #6c757d; }
.document-icon .bi-file-earmark-zip { color: #0dcaf0; }
.document-icon .bi-file-earmark { color: #6c757d; }

.document-info { flex: 1; min-width: 0; }

.document-name {
    display: block;
    font-weight: 500;
    font-size: 0.88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.document-meta {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.document-download {
    flex-shrink: 0;
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: color var(--ease);
}

.document-item:hover .document-download { color: var(--primary); }

/* === TIMELINE (CV) === */
.timeline { position: relative; padding-left: 2rem; }

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient);
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
    padding-left: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 3px solid var(--primary);
    box-shadow: 0 0 0 5px rgba(67, 97, 238, 0.15);
    z-index: 1;
}

.timeline-item .timeline-title {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-dark);
}

.timeline-item .timeline-institution {
    font-style: italic;
    color: var(--text-mid);
}

.timeline-item .timeline-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* === CONTACT FORM === */
.contact-form .form-control,
.contact-form .form-select {
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
    padding: 0.7rem 1rem;
    transition: all var(--ease);
    background: var(--bg-white);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.12);
}

.contact-form .btn-primary {
    background: var(--gradient) !important;
    border: none !important;
    border-radius: var(--radius-sm);
    padding: 0.7rem 2.5rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--ease);
}

.contact-form .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(67, 97, 238, 0.35);
}

/* === FOOTER === */
.site-footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: rgba(255,255,255,0.7);
    padding: 2.5rem 0;
    margin-top: 3rem;
    border-top: 4px solid;
    border-image: var(--gradient) 1;
}

.footer-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.footer-content p { margin: 0; font-size: 0.85rem; }

.footer-links {
    display: flex;
    gap: 0.75rem;
}

.footer-links a {
    color: rgba(255,255,255,0.5);
    font-size: 1.2rem;
    transition: all var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
}

.footer-links a:hover {
    color: #fff;
    background: var(--gradient);
    transform: translateY(-4px);
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.4);
}

/* === GLOBAL BUTTON OVERRIDES === */
.btn-primary {
    background: var(--gradient) !important;
    border: none !important;
    transition: all var(--ease);
}

.btn-primary:hover {
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    transition: all var(--ease);
}

.btn-outline-primary:hover {
    background: var(--gradient);
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.25);
}

/* === CARD GLOBAL === */
.card {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--ease);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

/* === BADGE OVERRIDES === */
.badge.bg-secondary {
    background: rgba(67, 97, 238, 0.1) !important;
    color: var(--primary) !important;
    font-weight: 600;
}

.badge.bg-success {
    background: var(--gradient) !important;
    border: none;
}

.badge.bg-info {
    background: rgba(114, 9, 183, 0.1) !important;
    color: var(--accent) !important;
}

/* === SCROLL ANIMATIONS === */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}

.pub-entry,
.project-detail-card,
.stat-item,
.timeline-item {
    animation: fadeInUp 0.5s ease forwards;
}

.pub-entry:nth-child(1) { animation-delay: 0.05s; }
.pub-entry:nth-child(2) { animation-delay: 0.1s; }
.pub-entry:nth-child(3) { animation-delay: 0.15s; }
.pub-entry:nth-child(4) { animation-delay: 0.2s; }

/* === SELECTION === */
::selection {
    background: rgba(67, 97, 238, 0.2);
    color: var(--text-dark);
}

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-body); }
::-webkit-scrollbar-thumb {
    background: var(--gradient);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* === TABLE OVERRIDES === */
.table { color: var(--text-dark); }
.table th { font-weight: 600; color: var(--text-dark); }

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .hero-text h1, .hero h1 { font-size: 1.85rem; }

    .hero-photo img, .hero-photo .profile-photo {
        width: 150px;
        height: 150px;
    }

    .page-header h1 { font-size: 1.5rem; }

    .pub-entry { flex-direction: column; gap: 0.5rem; }
    .pub-year { min-width: auto; }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .content-section { padding: 2rem 0; }

    .stat-item { margin-bottom: 1rem; }
    .section-title { font-size: 1.35rem; }
}

@media (max-width: 576px) {
    .navbar-brand .brand-name { font-size: 1rem; }
    .lang-toggle { margin-top: 0.5rem; }
}

/* === PROFILE PHOTO PLACEHOLDER === */
.profile-photo-placeholder {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: 4px solid rgba(255,255,255,0.35);
    box-shadow: 0 8px 40px rgba(0,0,0,0.25), 0 0 60px rgba(67,97,238,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-photo-placeholder i {
    font-size: 5rem;
    color: rgba(255,255,255,0.5);
}

.profile-photo-placeholder:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 50px rgba(0,0,0,0.3), 0 0 80px rgba(114,9,183,0.3);
}

@media (max-width: 768px) {
    .profile-photo-placeholder {
        width: 150px;
        height: 150px;
    }
    .profile-photo-placeholder i {
        font-size: 3.5rem;
    }
}

/* === HERO IMAGE (Rounded Rectangle) === */
.hero-image {
    flex-shrink: 0;
}

.hero-image img {
    width: 220px;
    height: 270px;
    object-fit: cover;
    border-radius: 20px;
    border: 4px solid rgba(255,255,255,0.3);
    box-shadow: 0 8px 40px rgba(0,0,0,0.25), 0 0 50px rgba(67,97,238,0.2);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-image img:hover {
    transform: scale(1.03) rotate(1deg);
    box-shadow: 0 12px 50px rgba(0,0,0,0.3), 0 0 70px rgba(114,9,183,0.25);
}

.hero-image-placeholder {
    width: 220px;
    height: 270px;
    border-radius: 20px;
    background: rgba(255,255,255,0.12);
    border: 4px solid rgba(255,255,255,0.25);
    box-shadow: 0 8px 40px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-image-placeholder i {
    font-size: 5rem;
    color: rgba(255,255,255,0.4);
}

.hero-image-placeholder:hover {
    transform: scale(1.03);
}

/* === PAGE HEADER CONTENT LAYOUT === */
.page-header-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.page-header-text {
    flex: 1;
}

.page-header-desc {
    color: rgba(255,255,255,0.7);
    font-size: 1.05rem;
    margin: 0.5rem 0 0;
}

.page-header-image {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 20px;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s;
}

.page-header-image i {
    font-size: 3rem;
    color: rgba(255,255,255,0.6);
    transition: color 0.3s;
}

.page-header-image:hover {
    transform: scale(1.05) rotate(2deg);
    background: rgba(255,255,255,0.15);
}

.page-header-image:hover i {
    color: rgba(255,255,255,0.85);
}

/* === RESPONSIVE OVERRIDES === */
@media (max-width: 768px) {
    .hero-image img,
    .hero-image-placeholder {
        width: 160px;
        height: 200px;
        border-radius: 16px;
    }

    .hero-image-placeholder i {
        font-size: 3.5rem;
    }

    .page-header-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .page-header-image {
        width: 90px;
        height: 90px;
        border-radius: 16px;
    }

    .page-header-image i {
        font-size: 2.2rem;
    }
}

/* Yayin baslik linki */
.pub-title-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.pub-title-link:hover {
    color: var(--primary-color, #2563eb);
    text-decoration: underline;
}

/* Lightbox Modal */
#lightbox-modal .modal-dialog {
    max-width: 95vw;
}

#lightbox-modal .modal-content {
    background: transparent !important;
}

#lightbox-modal .modal-backdrop,
#lightbox-modal {
    --bs-modal-bg: transparent;
}

#lightbox-modal .carousel-control-prev,
#lightbox-modal .carousel-control-next {
    width: 60px;
    opacity: 0.8;
}

#lightbox-modal .carousel-control-prev:hover,
#lightbox-modal .carousel-control-next:hover {
    opacity: 1;
}

/* Gallery item hover effect */
.pub-gallery-item,
[data-lightbox] img {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

[data-lightbox]:hover img {
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Yayin Accordion */
.yayin-accordion .accordion-item {
    border: none;
    border-bottom: 1px solid #e5e7eb;
    background: transparent;
}

.yayin-accordion .accordion-item:last-child {
    border-bottom: none;
}

.yayin-accordion .accordion-button {
    background: transparent;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-dark, #1e293b);
    padding: 1.1rem 1.25rem;
    box-shadow: none !important;
}

.yayin-accordion .accordion-button:not(.collapsed) {
    background: var(--bg-light, #f8fafc);
    color: var(--primary-color, #2563eb);
}

.yayin-accordion .accordion-button::after {
    flex-shrink: 0;
}

.yayin-accordion .accordion-button .badge {
    font-size: 0.8rem;
    font-weight: 500;
}

.yayin-accordion .accordion-body {
    padding: 0.5rem 1.25rem 1.25rem;
}
