/* Book Awards Directory - Main Stylesheet */

/* CSS Variables */
:root {
    --primary-color: #1a365d;
    --secondary-color: #2c5282;
    --accent-color: #d69e2e;
    --text-color: #2d3748;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --success-color: #38a169;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --max-width: 1200px;
    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --font-heading: Georgia, 'Times New Roman', serif;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-light);
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    line-height: 1.3;
    margin-bottom: 0.5em;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
}

/* Header & Navigation */
.main-header {
    background: var(--primary-color);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bg-white);
    text-decoration: none;
}

.logo:hover {
    color: var(--accent-color);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-menu li a {
    color: var(--bg-white);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu li a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-menu li a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 4rem 1rem;
    text-align: center;
    color: var(--bg-white);
}

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

.hero h1 {
    color: var(--bg-white);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    color: rgba(255,255,255,0.9);
}

.hero-description {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.85);
}

/* Search Box */
.search-box {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.search-box input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    font-size: 1rem;
    outline: none;
}

.search-box button {
    background: var(--accent-color);
    color: var(--bg-white);
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.search-box button:hover {
    background: #b7791f;
}

/* Main Content Sections */
main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

section {
    padding: 3rem 0;
}

/* Featured Awards Grid */
.featured-awards {
    background: var(--bg-white);
    margin: 2rem 0;
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.award-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.award-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.award-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.award-card h3 a {
    color: var(--primary-color);
}

.award-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.award-meta {
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 500;
}

/* Browse Categories */
.browse-categories {
    background: var(--bg-white);
    margin: 2rem 0;
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.category-section {
    margin-bottom: 2rem;
}

.category-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
}

.category-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.category-list li a {
    display: block;
    padding: 0.5rem 1rem;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.category-list li a:hover {
    background: var(--secondary-color);
    color: var(--bg-white);
    text-decoration: none;
    border-color: var(--secondary-color);
}

/* Award Highlights */
.award-highlights {
    background: var(--bg-white);
    margin: 2rem 0;
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.highlight-box {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--accent-color);
}

.highlight-box h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.highlight-box ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.highlight-box li a {
    font-size: 0.95rem;
}

/* Recent Winners */
.recent-winners {
    background: var(--bg-white);
    margin: 2rem 0;
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.winners-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.winner-item {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    color: var(--bg-white);
}

.winner-item h3 {
    color: var(--bg-white);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.winner-item p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.winner-item a {
    color: var(--accent-color);
    font-weight: 500;
}

.winner-item a:hover {
    color: var(--bg-white);
}

/* SEO Content Section */
.seo-content {
    background: var(--bg-white);
    margin: 2rem 0;
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.content-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.content-column h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.content-full {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.content-full h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* Footer */
.main-footer {
    background: var(--primary-color);
    color: var(--bg-white);
    margin-top: 3rem;
    padding-top: 3rem;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    color: var(--accent-color);
    font-size: 1rem;
    margin-bottom: 1rem;
    font-family: var(--font-main);
}

.footer-section ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-section li a {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

.footer-section li a:hover {
    color: var(--bg-white);
    text-decoration: none;
}

.footer-section p {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-bottom {
    margin-top: 2rem;
    padding: 1.5rem 1rem;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    margin: 0;
}

/* Category Page Styles */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 3rem 1rem;
    text-align: center;
    color: var(--bg-white);
}

.page-header h1 {
    color: var(--bg-white);
    margin-bottom: 0.5rem;
}

.page-header p {
    color: rgba(255,255,255,0.9);
    max-width: 700px;
    margin: 0 auto;
}

.breadcrumb {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--text-light);
}

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

/* Award Detail Page */
.award-detail {
    background: var(--bg-white);
    margin: 2rem 0;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.award-info-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.award-main h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.award-sidebar {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    height: fit-content;
}

.award-sidebar h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.info-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-label {
    font-size: 0.85rem;
    color: var(--text-light);
    display: block;
    margin-bottom: 0.25rem;
}

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

/* Winners Table */
.winners-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.winners-table th,
.winners-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.winners-table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--primary-color);
}

.winners-table tr:hover {
    background: var(--bg-light);
}

/* Genre/Category Pages */
.category-intro {
    background: var(--bg-white);
    margin: 2rem 0;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.awards-list-section {
    background: var(--bg-white);
    margin: 2rem 0;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.awards-list {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.award-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.award-list-item:hover {
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-sm);
}

.award-list-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.award-list-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

.award-list-meta {
    text-align: right;
}

.award-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--secondary-color);
    color: var(--bg-white);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Related Awards */
.related-awards {
    background: var(--bg-white);
    margin: 2rem 0;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

/* FAQ Section */
.faq-section {
    background: var(--bg-white);
    margin: 2rem 0;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.faq-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.faq-item p {
    color: var(--text-light);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 1rem;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        margin-top: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .search-box {
        flex-direction: column;
    }

    .search-box button {
        width: 100%;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .featured-awards,
    .browse-categories,
    .award-highlights,
    .recent-winners,
    .seo-content {
        padding: 1.5rem;
        margin: 1rem 0;
    }

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

    .award-sidebar {
        order: -1;
    }

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

@media (max-width: 480px) {
    .hero {
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

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

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

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

/* Print Styles */
@media print {
    .main-header,
    .search-box,
    .main-footer {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    a {
        color: black;
        text-decoration: underline;
    }
}
