/* styles.css - Main Stylesheet */

:root {
    --navy: #1a1a2e;
    --gold: #d4a574;
    --cream: #f5f1ed;
    --dark-grey: #2d2d2d;
    --rose: #a67c7c;
    --light-grey: #f9f7f5;
}

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

html, body {
    height: 100%;
}

body {
    font-family: 'Georgia', serif;
    background-color: var(--cream);
    color: var(--dark-grey);
    line-height: 1.6;
}

/* Navigation */
nav {
    background-color: var(--navy);
    color: var(--cream);
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    color: var(--cream);
}

.logo-text {
    color: var(--gold);
    font-family: 'Garamond', serif;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: var(--cream);
    text-decoration: none;
    font-size: 16px;
    padding: 8px 12px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    border-bottom-color: var(--gold);
    color: var(--gold);
}

.nav-links .admin {
    background-color: var(--gold);
    color: var(--navy);
    border-radius: 4px;
    padding: 8px 16px;
    border: none;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--cream);
    font-size: 24px;
    cursor: pointer;
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, #2d2d3d 100%);
    color: var(--cream);
    padding: 80px 40px;
    border-radius: 12px;
    margin-bottom: 60px;
    text-align: center;
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 48px;
    font-family: 'Garamond', serif;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.hero .subtitle {
    font-size: 24px;
    color: var(--gold);
    margin-bottom: 20px;
    font-weight: 300;
}

.hero p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn {
    background-color: var(--gold);
    color: var(--navy);
    border: none;
    padding: 14px 32px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-family: sans-serif;
}

.btn:hover {
    background-color: #c49464;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #f0f0f0;
    color: var(--dark-grey);
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}

.btn-danger {
    background-color: #a67c7c;
    color: white;
    padding: 6px 12px;
    font-size: 14px;
}

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

/* Section */
.section {
    margin-bottom: 60px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-title {
    font-size: 32px;
    font-family: 'Garamond', serif;
    color: var(--navy);
}

.see-all-btn {
    background: none;
    border: none;
    color: var(--gold);
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: sans-serif;
}

.see-all-btn:hover {
    color: #c49464;
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* Card */
.card {
    background-color: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.card-bookmark {
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 40px;
    background-color: var(--gold);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.card-type {
    font-size: 12px;
    background-color: #e8dcc4;
    color: #8b6f47;
    padding: 4px 12px;
    border-radius: 12px;
    font-family: sans-serif;
    font-weight: 600;
}

.card-rating {
    font-size: 14px;
    color: var(--gold);
    font-weight: 600;
}

.card-title {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--navy);
    font-family: 'Garamond', serif;
}

.card-meta {
    font-size: 14px;
    color: var(--rose);
    margin-bottom: 12px;
}

.card-content {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 16px;
}

.card-footer {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.card-category {
    font-size: 12px;
    background-color: #f0f0f0;
    padding: 4px 10px;
    border-radius: 4px;
    color: #666;
}

/* Stats Section */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 60px;
}

.stat-box {
    background-color: white;
    padding: 32px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.stat-number {
    font-size: 36px;
    color: var(--gold);
    font-weight: bold;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: #666;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-title {
    font-size: 40px;
    font-family: 'Garamond', serif;
    color: var(--navy);
    margin-bottom: 12px;
}

.page-subtitle {
    font-size: 16px;
    color: #666;
    max-width: 500px;
    margin: 0 auto;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background-color: white;
    border-radius: 8px;
}

.empty-state-text {
    font-size: 16px;
    color: #666;
    margin-bottom: 24px;
}

/* Admin Styles */
.admin-container {
    background-color: white;
    border-radius: 8px;
    padding: 32px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    border-bottom: 2px solid #eee;
    padding-bottom: 20px;
}

.admin-title {
    font-size: 32px;
    font-family: 'Garamond', serif;
    margin: 0;
    color: var(--navy);
}

.logout-btn {
    background-color: var(--rose);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-family: sans-serif;
}

.logout-btn:hover {
    background-color: #8b6464;
}

/* Tabs */
.tab-container {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    border-bottom: 1px solid #eee;
}

.tab {
    background: none;
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    font-size: 14px;
    color: #999;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    font-family: sans-serif;
    font-weight: 600;
}

.tab.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

/* Admin Content Grid */
.admin-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.form-section {
    background-color: var(--light-grey);
    padding: 24px;
    border-radius: 8px;
}

.form-title {
    font-size: 18px;
    font-family: 'Garamond', serif;
    color: var(--navy);
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: var(--dark-grey);
    margin-bottom: 6px;
    font-family: sans-serif;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: sans-serif;
    resize: vertical;
}

.form-group textarea {
    min-height: 120px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

.submit-btn {
    background-color: var(--gold);
    color: var(--navy);
    border: none;
    padding: 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    font-family: sans-serif;
    width: 100%;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: #c49464;
}

/* List Section */
.list-section {
    background-color: var(--light-grey);
    padding: 24px;
    border-radius: 8px;
}

.list-title {
    font-size: 18px;
    font-family: 'Garamond', serif;
    color: var(--navy);
    margin-bottom: 20px;
}

.content-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 500px;
    overflow-y: auto;
}

.list-item {
    background-color: white;
    padding: 16px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    border-left: 4px solid var(--gold);
}

.list-item-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    margin: 0 0 4px 0;
}

.list-item-meta {
    font-size: 12px;
    color: #999;
    margin: 0 0 8px 0;
}

.list-item-content {
    font-size: 12px;
    color: #666;
    margin: 0;
}

.list-item-actions {
    display: flex;
    gap: 8px;
    white-space: nowrap;
}

.delete-btn {
    background-color: #f0f0f0;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-family: sans-serif;
    transition: all 0.3s ease;
}

.delete-btn:hover {
    background-color: #e0e0e0;
}

.empty-list-text {
    text-align: center;
    color: #999;
    padding: 20px;
}

/* Login Page */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.login-box {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-width: 400px;
    width: 100%;
}

.login-title {
    font-size: 28px;
    font-family: 'Garamond', serif;
    color: var(--navy);
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 24px;
}

.hint-text {
    font-size: 12px;
    color: #999;
    text-align: center;
    margin-top: 16px;
}

/* Footer */
footer {
    background-color: var(--navy);
    color: var(--cream);
    padding: 40px 20px;
    margin-top: 60px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-text {
    margin: 8px 0;
    font-size: 14px;
    font-family: sans-serif;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 20px;
        background-color: var(--navy);
        padding: 20px;
        border-radius: 8px;
        gap: 10px;
        z-index: 1000;
    }

    .nav-links.active a {
        color: var(--cream);
        border: none;
    }

    .hero {
        padding: 40px 20px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero .subtitle {
        font-size: 18px;
    }

    .section-title {
        font-size: 24px;
    }

    .admin-content {
        grid-template-columns: 1fr;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: 28px;
    }
}

/* Scrollbar Styling */
.content-list::-webkit-scrollbar {
    width: 6px;
}

.content-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.content-list::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 10px;
}

.content-list::-webkit-scrollbar-thumb:hover {
    background: #c49464;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: 4px;
    font-family: sans-serif;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}
