/* ----------------------------------------------------
   CanTurkmen - Minimal & Modern Design System (Vercel Style)
   ---------------------------------------------------- */

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

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #121212;
    --bg-card: #171717;
    --bg-card-hover: #1e1e1e;
    
    --border-color: #262626;
    --border-color-hover: #404040;
    
    --accent-blue: #0070f3;
    --accent-blue-hover: #0051b3;
    
    --text-main: #a3a3a3;
    --text-muted: #737373;
    --text-light: #e5e5e5;
    --text-white: #ffffff;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Fira Code', monospace;
    
    --transition-speed: 0.2s;
    --max-width: 1100px;
    --header-height: 70px;
    
    --color-success: #10b981;
    --color-error: #ef4444;
    --color-warning: #f59e0b;
}

/* ----------------------------------------------------
   Base & Reset Styles
   ---------------------------------------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: #262626;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #404040;
}

/* ----------------------------------------------------
   Typography & Headers
   ---------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-white);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.title-large {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

/* ----------------------------------------------------
   Layout & Container
   ---------------------------------------------------- */
.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

main {
    flex: 1;
    padding-top: calc(var(--header-height) + 3rem);
    padding-bottom: 5rem;
}

/* ----------------------------------------------------
   Shared Component: Header
   ---------------------------------------------------- */
header {
    height: var(--header-height);
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--text-muted);
    font-weight: 400;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 1.8rem;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
    transition: color var(--transition-speed);
}

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

.nav-auth {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.4rem;
}

/* ----------------------------------------------------
   Shared Component: Buttons
   ---------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.2rem;
    border-radius: 6px;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-speed);
    gap: 0.4rem;
    border: 1px solid transparent;
}

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

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--border-color-hover);
    transform: translateY(-1px);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--color-error);
    border-color: rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--color-error);
}

.btn-sm {
    padding: 0.35rem 0.8rem;
    font-size: 0.8rem;
}

/* ----------------------------------------------------
   Alert / Notification Cards
   ---------------------------------------------------- */
.alert {
    padding: 0.9rem 1.2rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    border: 1px solid transparent;
}

.alert-success {
    background: rgba(16, 185, 129, 0.05);
    color: var(--color-success);
    border-color: rgba(16, 185, 129, 0.15);
}

.alert-error {
    background: rgba(239, 68, 68, 0.05);
    color: var(--color-error);
    border-color: rgba(239, 68, 68, 0.15);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.05);
    color: var(--color-warning);
    border-color: rgba(245, 158, 11, 0.15);
}

/* ----------------------------------------------------
   Homepage (index.php) Styles
   ---------------------------------------------------- */
.hero {
    padding: 3.5rem 0;
    max-width: 680px;
    text-align: left;
}

.hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    letter-spacing: -0.03em;
    color: var(--text-white);
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* Stats Section */
.stats-grid {
    display: flex;
    gap: 3rem;
    margin-bottom: 4.5rem;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 2rem 0;
}

.stat-card {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-white);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Sections titles */
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.8rem;
}

.section-title h2 {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-white);
}

/* Blog & Project Grids (Vercel Style: Minimal rows or clean grids) */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4.5rem;
}

/* Minimalist Cards */
.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color var(--transition-speed), background-color var(--transition-speed);
}

.card:hover {
    border-color: var(--border-color-hover);
    background-color: var(--bg-card);
}

.card-img-wrapper {
    height: 170px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    border: none;
}

.card-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--bg-primary);
    color: var(--text-light);
    border: 1px solid var(--border-color);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
}

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

.card-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.card-title {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.3;
}

.card-title a {
    color: var(--text-white);
}

.card-title a:hover {
    color: var(--text-main);
}

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

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 0.85rem;
    font-size: 0.85rem;
}

.card-author {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
}

.card-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-white);
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    border-bottom: 1px solid transparent;
}

.card-link:hover {
    border-color: var(--text-white);
}

/* Tags in project cards */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.tag {
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    background: var(--bg-primary);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

/* ----------------------------------------------------
   Pages: About Page (about.php)
   ---------------------------------------------------- */
.about-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 3.5rem;
    margin-bottom: 4rem;
}

.about-sidebar {
    text-align: left;
    height: fit-content;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 1.25rem;
    border: 1px solid var(--border-color);
    object-fit: cover;
}

.profile-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.2rem;
}

.profile-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.profile-info {
    border-top: 1px solid var(--border-color);
    padding-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    font-size: 0.85rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.info-label {
    color: var(--text-muted);
    font-weight: 500;
}

.about-content-area h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.about-content-area p {
    color: var(--text-main);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Skills section */
.skills-section {
    margin-top: 3rem;
}

.skill-bar-wrapper {
    margin-bottom: 1.25rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.35rem;
    color: var(--text-light);
}

.skill-progress-bg {
    height: 6px;
    background: var(--bg-secondary);
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.skill-progress-bar {
    height: 100%;
    background: var(--text-white);
    width: 0;
    transition: width 1.5s ease-out;
}

/* Timeline */
.timeline {
    margin: 3.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 1px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: calc(-1.5rem - 3.5px);
    top: 7px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-white);
    z-index: 2;
}

.timeline-date {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.timeline-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 0.25rem;
}

.timeline-company {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.timeline-desc {
    color: var(--text-main);
    font-size: 0.875rem;
}

/* Contact section */
.contact-section {
    border-top: 1px solid var(--border-color);
    padding-top: 3.5rem;
}

.contact-section h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.contact-section p {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

/* Forms styling */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group-full {
    grid-column: span 2;
}

.form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
}

.form-control {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.6rem 0.8rem;
    color: var(--text-white);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    outline: none;
    transition: border-color var(--transition-speed);
}

.form-control:focus {
    border-color: var(--border-color-hover);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* ----------------------------------------------------
   Pages: Login & Register
   ---------------------------------------------------- */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.auth-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
}

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

.auth-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

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

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

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--text-white);
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ----------------------------------------------------
   Pages: Blog & Projects Directory
   ---------------------------------------------------- */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.filter-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.35rem 0.85rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--text-white);
    color: var(--bg-primary);
    border-color: var(--text-white);
}

.search-box {
    position: relative;
    min-width: 240px;
}

.search-box input {
    width: 100%;
    padding: 0.45rem 0.9rem;
    padding-right: 2.2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-white);
    outline: none;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    transition: border-color var(--transition-speed);
}

.search-box input:focus {
    border-color: var(--border-color-hover);
}

.search-box button {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ----------------------------------------------------
   Pages: Article Detail (article.php)
   ---------------------------------------------------- */
.article-header {
    margin-bottom: 2.5rem;
    text-align: left;
}

.article-header h1 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.85rem;
    color: var(--text-white);
    letter-spacing: -0.02em;
}

.article-meta {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.article-hero-img {
    height: 400px;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 3rem;
}

.article-body {
    max-width: 680px;
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.75;
}

.article-body p {
    margin-bottom: 1.6rem;
    color: var(--text-light);
}

.article-body h2 {
    font-size: 1.5rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.article-body h3 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.article-body pre {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    border-radius: 6px;
    overflow-x: auto;
    margin: 1.8rem 0;
}

.article-body code {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #e5e5e5;
}

.article-body blockquote {
    border-left: 2px solid var(--text-white);
    padding-left: 1.25rem;
    font-style: italic;
    color: var(--text-main);
    margin: 1.8rem 0;
}

/* Comments Area */
.comments-section {
    max-width: 680px;
    margin: 4.5rem 0 0 0;
    border-top: 1px solid var(--border-color);
    padding-top: 3rem;
}

.comments-section h3 {
    font-size: 1.35rem;
    margin-bottom: 1.5rem;
}

.comment-form {
    margin-bottom: 3rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 8px;
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comment-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.85rem;
    font-size: 0.85rem;
}

.comment-user {
    font-weight: 600;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.comment-badge {
    font-size: 0.65rem;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    font-weight: 500;
}

.comment-date {
    color: var(--text-muted);
}

.comment-text {
    font-size: 0.9rem;
    color: var(--text-light);
    word-break: break-word;
    white-space: pre-line;
}

.comment-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

/* ----------------------------------------------------
   Pages: Admin Dashboard
   ---------------------------------------------------- */
.admin-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2.5rem;
    min-height: 70vh;
}

/* Admin Sidebar Menu */
.admin-sidebar {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem 1rem;
    height: fit-content;
}

.admin-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 0.9rem;
    border-radius: 6px;
    color: var(--text-main);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.admin-nav-link:hover {
    color: var(--text-white);
    background: var(--bg-primary);
}

.admin-nav-link.active {
    color: var(--text-white);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
}

/* Admin Main Content */
.admin-main {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
}

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

/* Dashboard Summary Cards */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.admin-stat-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    border-radius: 8px;
    text-align: center;
}

.admin-stat-val {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-white);
}

.admin-stat-lbl {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 0.15rem;
}

/* Tables Styling */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 1.5rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

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

.admin-table th, .admin-table td {
    padding: 0.85rem 1.1rem;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    background: var(--bg-primary);
    color: var(--text-white);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
}

.admin-table tr:hover td {
    background: var(--bg-primary);
}

.admin-table td {
    color: var(--text-main);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.badge-admin {
    background: transparent;
    color: var(--text-white);
    border-color: var(--border-color-hover);
}

.badge-user {
    background: transparent;
    color: var(--text-muted);
    border-color: var(--border-color);
}

.actions-cell {
    display: flex;
    gap: 0.4rem;
}

.message-detail-box {
    background: var(--bg-primary);
    padding: 1.25rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.message-meta-info {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
}

/* ----------------------------------------------------
   Shared Component: Footer
   ---------------------------------------------------- */
footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 0;
    margin-top: auto;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-socials {
    display: flex;
    gap: 1.2rem;
}

.social-icon {
    font-size: 1.15rem;
    color: var(--text-muted);
    transition: color var(--transition-speed);
}

.social-icon:hover {
    color: var(--text-white);
}

/* ----------------------------------------------------
   Responsive Adjustments (Mobile, Tablet)
   ---------------------------------------------------- */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .admin-layout {
        grid-template-columns: 1fr;
    }
    .admin-sidebar {
        margin-bottom: 1rem;
        width: 100%;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hamburger {
        display: block;
        z-index: 1001;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: #121212;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1.8rem;
        transition: right 0.3s ease;
        border-left: 1px solid var(--border-color);
        z-index: 1000;
        padding: 2rem;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-auth {
        flex-direction: column;
        width: 100%;
        margin-top: 1.5rem;
    }
    
    .nav-auth .btn {
        width: 100%;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group-full {
        grid-column: span 1;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}

/* Homepage Split Layout */
.homepage-layout {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 3.5rem;
    align-items: start;
}

.homepage-main {
    display: flex;
    flex-direction: column;
}

.homepage-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: sticky;
    top: calc(var(--header-height) + 2rem);
}

.sidebar-widget {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
}

.sidebar-widget h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.sidebar-stats-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.sidebar-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 0.75rem;
}

.sidebar-stat-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-stat-num {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
}

.sidebar-stat-label {
    font-size: 0.85rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

@media (max-width: 992px) {
    .homepage-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .homepage-sidebar {
        position: static;
    }
}
