/* 
   Bukimdir - Styling & Layout CSS
   Design System: Eye-friendly modern light theme
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --color-primary: #3b82f6;
    --color-primary-hover: #2563eb;
    --color-secondary: #0d9488;
    --color-text-main: #0f172a;
    --color-text-muted: #64748b;
    --color-border: #e2e8f0;
    --color-onay-success: #10b981;
    --color-onay-pending: #f59e0b;
    --color-onay-danger: #ef4444;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--color-text-main);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

/* Header Styles */
header {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.95);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--color-text-main);
}

.header-search {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.header-search input {
    width: 100%;
    padding: 0.625rem 1rem 0.625rem 2.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    background-color: var(--bg-main);
    font-family: var(--font-body);
    outline: none;
    transition: var(--transition);
}

.header-search input:focus {
    border-color: var(--color-primary);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.header-search i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    font-weight: 500;
    color: var(--color-text-muted);
}

.nav-link:hover, .nav-link.active {
    color: var(--color-primary);
}

.admin-btn {
    background-color: var(--color-primary);
    color: #fff;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-btn:hover {
    background-color: var(--color-primary-hover);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
    color: #fff;
}

/* Main Container */
main {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Hero Area (index.php) */
.hero {
    text-align: center;
    padding: 3.5rem 1.5rem;
    background: linear-gradient(135deg, #eff6ff 0%, #f0fdfa 100%);
    border-radius: var(--radius-lg);
    margin-bottom: 3rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(#3b82f6 0.5px, transparent 0.5px);
    background-size: 16px 16px;
    opacity: 0.15;
    pointer-events: none;
}

.hero h1 {
    font-size: 2.75rem;
    margin-bottom: 1rem;
    color: var(--color-text-main);
}

.hero h1 span {
    color: var(--color-primary);
}

.hero p {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.hero-search {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.hero-search input {
    width: 100%;
    padding: 1rem 1.5rem 1rem 3.5rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: 1.125rem;
    outline: none;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.hero-search input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.15);
}

.hero-search button {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 1.25rem;
    cursor: pointer;
}

/* Home Section Layouts */
.section-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background-color: var(--color-border);
}

.home-section {
    margin-bottom: 3.5rem;
}

/* Profile Grid */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
}

/* Profile Card Styling */
.profile-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition);
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(59, 130, 246, 0.3);
}

.card-img-wrapper {
    position: relative;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    overflow: hidden;
    background-color: #f1f5f9;
}

.card-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.profile-card:hover .card-img-wrapper img {
    scale: 1.05;
}

.card-info {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-text-main);
}

.card-bio-excerpt {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    border-top: 1px solid var(--color-border);
    padding-top: 0.75rem;
    margin-top: auto;
}

.card-meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Profile Detail Page */
.profile-detail-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 3rem;
    align-items: start;
}

.profile-sidebar {
    position: sticky;
    top: 90px;
    background-color: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.profile-sidebar-img {
    width: 220px;
    height: 220px;
    border-radius: var(--radius-full);
    object-fit: cover;
    margin: 0 auto 1.5rem auto;
    border: 6px solid var(--bg-main);
    box-shadow: var(--shadow-md);
}

.profile-sidebar h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.profile-sidebar-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1rem 0;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1rem;
}

.share-buttons {
    margin-top: 1.5rem;
}

.share-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}

.share-grid {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.share-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.125rem;
    box-shadow: var(--shadow-sm);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

.share-facebook { background-color: #1877f2; }
.share-twitter { background-color: #1da1f2; }
.share-whatsapp { background-color: #25d366; }
.share-copylink { background-color: #4b5563; cursor: pointer; }

/* Profile Detail Content */
.profile-content {
    background-color: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-sm);
}

.biography-section {
    margin-bottom: 3rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.biography-section h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.biography-section h2 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem 0;
}

.biography-section p {
    margin-bottom: 1.25rem;
}

/* Tag Cloud & Badges */
.tag-section {
    margin-bottom: 3rem;
}

.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-badge {
    background-color: #eff6ff;
    color: var(--color-primary);
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid #dbeafe;
}

.tag-badge:hover {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* Tag Cloud Home Section */
.tag-cloud-home {
    background-color: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 2rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Gallery Styles */
.gallery-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 0.5rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.25rem;
}

.gallery-item {
    position: relative;
    padding-top: 75%; /* 4:3 Aspect Ratio */
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* Lightbox Styles (Pure CSS/JS) */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 2rem;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--color-primary);
}

/* Search Page */
.search-results-heading {
    margin-bottom: 2rem;
    font-size: 1.5rem;
    color: var(--color-text-muted);
}

.search-results-heading strong {
    color: var(--color-text-main);
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.no-results i {
    font-size: 3rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.no-results h3 {
    margin-bottom: 0.5rem;
}

/* Admin Styles */
.admin-login-body {
    background-color: var(--bg-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.admin-login-container {
    width: 100%;
    max-width: 420px;
    padding: 1.5rem;
}

.admin-login-card {
    background-color: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.admin-login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.admin-login-header h2 {
    font-size: 1.75rem;
    color: var(--color-primary);
}

.admin-login-header p {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text-main);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-check input {
    width: 16px;
    height: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-family: var(--font-body);
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.btn-secondary {
    background-color: white;
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
}

.btn-secondary:hover {
    background-color: var(--bg-main);
}

.btn-danger {
    background-color: var(--color-onay-danger);
    color: white;
}

.btn-danger:hover {
    background-color: #dc2626;
}

.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    border: 1px solid transparent;
}

.alert-danger {
    background-color: #fef2f2;
    border-color: #fca5a5;
    color: #991b1b;
}

.alert-success {
    background-color: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

/* Admin Dashboard CSS */
.admin-dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1.5rem;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.admin-stat-card {
    background-color: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.admin-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.icon-blue { background-color: #3b82f6; }
.icon-green { background-color: #10b981; }
.icon-orange { background-color: #f59e0b; }
.icon-purple { background-color: #8b5cf6; }

.admin-stat-info h4 {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.admin-stat-info p {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-text-main);
    line-height: 1.2;
}

/* Admin Table */
.admin-card {
    background-color: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.admin-card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.admin-card-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.admin-search {
    position: relative;
    max-width: 320px;
    width: 100%;
}

.admin-search input {
    width: 100%;
    padding: 0.5rem 1rem 0.5rem 2.25rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    outline: none;
    font-size: 0.875rem;
}

.admin-search i {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

table.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

table.admin-table th, table.admin-table td {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.875rem;
}

table.admin-table th {
    background-color: #f8fafc;
    font-weight: 600;
    color: var(--color-text-muted);
}

.admin-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    object-fit: cover;
    background-color: #f1f5f9;
}

.onay-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.onay-active {
    background-color: #d1fae5;
    color: #065f46;
}

.onay-passive {
    background-color: #fee2e2;
    color: #991b1b;
}

.admin-action-btns {
    display: flex;
    gap: 0.5rem;
}

.admin-edit-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    padding: 1.5rem;
}

/* Image Manager inside Admin */
.admin-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.admin-gallery-item {
    position: relative;
    padding-top: 100%;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.admin-gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-gallery-item .delete-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.admin-gallery-item:hover .delete-overlay {
    opacity: 1;
}

.admin-gallery-item .delete-overlay a {
    color: white;
    background-color: var(--color-onay-danger);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.admin-gallery-item .delete-overlay a:hover {
    background-color: #b91c1c;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    padding: 1.5rem;
    background-color: var(--bg-card);
}

.pagination-item {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    font-weight: 500;
    font-size: 0.875rem;
}

.pagination-item:hover, .pagination-item.active {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* Footer Styles */
footer {
    background-color: var(--bg-card);
    border-top: 1px solid var(--color-border);
    margin-top: auto;
}

.footer-top {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    max-width: 350px;
}

.footer-links-col h4 {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    color: var(--color-text-main);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--color-primary);
    padding-left: 4px;
}

.footer-stats-list {
    list-style: none;
}

.footer-stats-list li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    border-bottom: 1px dotted var(--color-border);
    padding-bottom: 0.5rem;
}

.footer-stats-list span:last-child {
    font-weight: 600;
    color: var(--color-text-main);
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding: 2rem 1.5rem;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.875rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .profile-detail-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .profile-sidebar {
        position: relative;
        top: 0;
        width: 100%;
    }
    
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
    
    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    main {
        padding: 1.5rem 1rem;
    }
    
    .header-container {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .nav-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .header-search {
        max-width: 100%;
    }
    
    .hero {
        padding: 2.5rem 1rem;
        margin-bottom: 2rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2.5rem 1.5rem;
    }
    
    .footer-brand {
        grid-column: span 1;
    }
    
    .admin-edit-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-content {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .profile-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .hero h1 {
        font-size: 1.65rem;
    }
    
    .hero p {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }
    
    .hero-search input {
        padding: 0.75rem 1rem 0.75rem 2.75rem;
        font-size: 0.95rem;
    }
    
    .hero-search button {
        left: 1rem;
    }
    
    .section-title {
        font-size: 1.35rem;
        margin-bottom: 1.25rem;
    }
    
    .profile-sidebar {
        padding: 1.5rem 1rem;
    }
    
    .profile-sidebar-img {
        width: 160px;
        height: 160px;
    }
    
    .profile-content {
        padding: 1.25rem;
    }
    
    .biography-section h1 {
        font-size: 1.65rem;
    }
}

/* Admin Stats Grid & Layout */
.admin-grid-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
    margin-top: 2rem;
}

@media (min-width: 1300px) {
    .admin-grid-layout {
        grid-template-columns: 2.75fr 1fr;
    }
}

.search-stats-list {
    list-style: none;
    padding: 0.5rem;
}

.search-stats-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.9rem;
}

.search-stats-item:last-child {
    border-bottom: none;
}

.search-stats-badge {
    background-color: var(--bg-main);
    color: var(--color-text-main);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.8rem;
    border: 1px solid var(--color-border);
}

/* Ad Spaces (Sponsorlu Reklam Alanları) Styling */
.ad-slot {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.7) 0%, rgba(241, 245, 249, 0.7) 100%);
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.875rem;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    cursor: pointer;
}

.ad-slot:hover {
    background: linear-gradient(135deg, rgba(241, 245, 249, 0.9) 0%, rgba(226, 232, 240, 0.9) 100%);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.ad-slot-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
    opacity: 0.6;
}

.ad-slot-placeholder {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-text-muted);
    opacity: 0.85;
}

.ad-slot-horizontal {
    width: 100%;
    min-height: 90px;
}

.ad-slot-sidebar {
    min-height: 250px;
    width: 100%;
    margin-top: 1.5rem;
}

.ad-slot-content {
    min-height: 120px;
    margin: 2.5rem 0;
}

/* Admin Panel Style Refinements */
.admin-filters {
    display: flex;
    gap: 0.25rem;
    background: var(--bg-main);
    padding: 0.25rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
}

.admin-filter-btn {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.admin-filter-btn:hover {
    color: var(--color-text-main);
    background-color: rgba(0, 0, 0, 0.02);
}

.admin-filter-btn.active {
    background-color: var(--color-primary);
    color: white !important;
}

.admin-filter-btn .badge {
    padding: 0.05rem 0.35rem;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: 2px;
    transition: var(--transition);
}

.admin-filter-btn.active .badge {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
}

.admin-filter-btn:not(.active) .badge {
    background-color: var(--color-border);
    color: var(--color-text-main);
}

.admin-action-btns {
    display: flex;
    gap: 0.35rem;
    flex-wrap: nowrap;
}

.admin-action-btns .btn {
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.admin-action-btns .btn:hover {
    box-shadow: none;
}

.admin-action-btns .btn-secondary {
    background-color: white;
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
}

.admin-action-btns .btn-secondary.auto-create-btn {
    border: 1px solid var(--color-primary);
    background-color: rgba(59, 130, 246, 0.05);
}

.admin-action-btns .btn-secondary.auto-create-btn:hover {
    background-color: rgba(59, 130, 246, 0.15);
}

/* Admin Table responsiveness adjustments */
@media (max-width: 1399px) {
    table.admin-table th, table.admin-table td {
        padding: 0.6rem 0.4rem;
        font-size: 0.8rem;
    }
    
    .admin-avatar {
        width: 32px;
        height: 32px;
    }
    
    .onay-badge {
        padding: 0.2rem 0.5rem;
        font-size: 0.7rem;
    }
}


