/*
Theme Name: Newsweek Readers' Choice Theme
Description: A WordPress theme for Newsweek's Readers' Choice Awards nominee portal with ACF integration for editable content.
Author: Newsweek LLC
Version: 1.1.0
Text Domain: newsweek-readers-choice
Domain Path: /languages
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-background, custom-colors, custom-header, custom-menu, featured-images, flexible-header, full-width-template, post-thumbnails, sticky-post, theme-options
*/

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@400;600;700&display=swap');

/* Import modern font for site title (Benton Modern alternative) */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue:wght@400&display=swap');

/* CSS Reset */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}

body {
    line-height: 1;
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: #1f2937;
    min-height: 100vh;
}

ol, ul {
    list-style: none;
}

blockquote, q {
    quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Base Styles */
* {
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: inherit;
}

a:hover, a:focus {
    text-decoration: none;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.font-serif {
    font-family: 'Playfair Display', serif;
}

.font-bold {
    font-weight: 700;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-gray-600 {
    color: #4b5563;
}

.text-nw-black {
    color: #1f2937;
}

.max-w-2xl {
    max-width: 42rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.gap-4 {
    gap: 1rem;
}

.justify-center {
    justify-content: center;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.w-4 {
    width: 1rem;
}

.h-4 {
    height: 1rem;
}

.ml-2 {
    margin-left: 0.5rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-red-100 {
    color: #fee2e2;
}

.leading-relaxed {
    line-height: 1.625;
}

.max-w-3xl {
    max-width: 48rem;
}

@media (min-width: 640px) {
    .sm\\:flex-row {
        flex-direction: row;
    }
}

@media (min-width: 768px) {
    .md\\:text-4xl {
        font-size: 2.25rem;
        line-height: 2.5rem;
    }
}

/* Layout */
.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-header {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    position: relative;
    z-index: 1000;
    border-bottom: 1px solid #e5e7eb;
}

.site-main {
    flex: 1;
    display: block;
    width: 100%;
}

.site-footer {
    background: #470101;
    color: #ffffff;
    padding: 3rem 0;
    margin-top: auto;
    width: 100%;
}

/* Content Sections */
.content-section {
    padding: 3rem 0;
}

.page-content {
    width: 100%;
    display: block;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

/* Header */
.header-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #1f2937;
}

.site-logo img {
    width: 32px;
    height: 32px;
}

.site-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
}

.main-navigation {
    display: none;
    gap: 0.25rem;
}

@media (min-width: 768px) {
    .main-navigation {
        display: flex;
    }
}

.nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: #dc2626;
    background-color: #f9fafb;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 4rem 0;
}

.hero-content {
    text-align: center !important;
    max-width: 64rem;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 1.5rem;
}

.hero-content * {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.hero-badge {
    display: inline-block;
    background: #dc2626;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #dc2626;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.125rem !important;
    color: #6b7280 !important;
    margin-bottom: 2rem !important;
    line-height: 1.6 !important;
    max-width: 48rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 0.375rem;
    border: 2px solid;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-size: 1rem;
    min-height: 3rem;
}

/* Small buttons for action cards */
.btn.text-xs {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.75rem !important;
    font-weight: 600;
    min-height: 2.25rem !important;
    width: 100%;
}

.btn-primary {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
}

.btn-primary:hover {
    background: #b91c1c;
    border-color: #b91c1c;
    color: white;
}

.btn-secondary {
    background: white;
    color: #dc2626;
    border-color: #dc2626;
}

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

/* Action card button hover effects */
.action-card .btn-secondary:hover,
.action-card.group:hover .btn-secondary {
    background: #dc2626 !important;
    color: white !important;
    border-color: #dc2626 !important;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

/* Quick Actions */
.quick-actions {
    background: #f9fafb;
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
}

.section-description {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 42rem;
    margin: 0 auto;
    line-height: 1.6;
}

.actions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 0;
}

@media (min-width: 768px) {
    .actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .actions-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.action-card {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.2s ease;
    position: relative;
}

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

.action-card.group:hover .action-icon {
    transform: scale(1.05);
}

.action-icon {
    width: 3rem;
    height: 3rem;
    color: #dc2626;
    margin-bottom: 1rem;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.action-icon svg {
    width: 100%;
    height: 100%;
}

.flex-1 {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.action-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.action-description {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    flex: 1;
    line-height: 1.5;
}

/* Quick Actions Grid */
.quick-actions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .quick-actions-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* CTA Section */
.cta-section {
    background: #dc2626;
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.cta-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.25rem;
    color: #fee2e2;
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

@media (min-width: 640px) {
    .cta-buttons {
        flex-direction: row;
    }
}

.btn-white {
    background: white;
    color: #1f2937;
    border-color: #e5e7eb;
}

.btn-outline {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-outline:hover {
    background: white;
    color: #1f2937;
}

/* Forms */
.form-section {
    padding: 4rem 0;
    background: #ffffff;
}

.form-container {
    max-width: 56rem;
    margin: 0 auto;
}

.form-field {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
    font-size: 0.875rem;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

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

@media (min-width: 768px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* File Upload Styling */
.file-upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    background: #f9fafb;
    transition: border-color 0.2s ease;
    cursor: pointer;
}

.file-upload-area:hover {
    border-color: #dc2626;
}

.file-upload-area svg {
    width: 3rem;
    height: 3rem;
    color: #9ca3af;
    margin: 0 auto 1rem;
}

.file-upload-area p {
    margin: 0;
    color: #6b7280;
}

.file-upload-area .upload-text {
    font-size: 1.125rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.file-upload-area .upload-hint {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Info Boxes */
.info-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.info-box h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 1rem;
}

.info-box ul {
    color: #1e40af;
}

.info-box li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.info-box li:before {
    content: "•";
    position: absolute;
    left: 0;
}

/* Footer */
.footer-content {
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-section h3,
.footer-section h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.footer-section h3 {
    font-size: 1.125rem;
}

.footer-section h4 {
    font-size: 1rem;
}

.footer-section p {
    color: #d1d5db;
    font-size: 0.875rem;
    line-height: 1.6;
}

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

.footer-link {
    color: #d1d5db;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: white;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-bottom p {
    font-size: 0.875rem;
    color: #9ca3af;
    margin: 0;
}

/* WordPress Admin Bar Fixes */
body.admin-bar .site-wrapper {
    padding-top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-wrapper {
        padding-top: 46px;
    }
}

/* Custom Logo */
.custom-logo {
    width: 32px !important;
    height: 32px !important;
    border-radius: 0 !important;
}

/* Override WordPress Default Styles */
.wp-block-button__link,
.wp-block-file__button {
    background: none !important;
    color: inherit !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    font-size: inherit !important;
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 1rem;
    }
}

/* Utility Classes for WordPress */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }

.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }

.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }

.hidden { display: none; }
.block { display: block; }

.text-red { color: #dc2626; }
.text-gray { color: #6b7280; }
.text-white { color: white; }

.bg-red { background-color: #dc2626; }
.bg-gray-light { background-color: #f9fafb; }
.bg-white { background-color: white; }

.border-radius { border-radius: 0.375rem; }
.border-gray { border: 1px solid #e5e7eb; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

/* Ensure header and footer are visible */
header.site-header {
    display: block !important;
    width: 100% !important;
    position: relative !important;
}

footer.site-footer {
    display: block !important;
    width: 100% !important;
}

main.site-main {
    display: block !important;
    width: 100% !important;
}

/* Additional Production Fixes */
.site-logo .site-title {
    display: inline-block;
    margin-left: 0.75rem;
}

@media (max-width: 640px) {
    .site-logo .site-title {
        display: none;
    }
}

/* Ensure buttons look consistent */
.btn svg {
    width: 1rem;
    height: 1rem;
    margin-left: 0.5rem;
}

/* Better spacing for content sections */
.hero-section + .quick-actions {
    margin-top: 0;
}

.quick-actions + .cta-section {
    margin-top: 0;
}

/* Form improvements */
.form-field input[type="file"] {
    padding: 0;
    border: none;
    background: none;
}

.form-field .text-red,
.form-field [style*="color: #dc2626"] {
    color: #dc2626 !important;
}

/* Ensure proper text colors */
.hero-description {
    color: #6b7280 !important;
}

.section-description {
    color: #6b7280 !important;
}

.cta-description {
    color: #fee2e2 !important;
}

/* Footer link spacing */
.footer-links a {
    display: block;
    margin-bottom: 0.5rem;
}

/* Responsive improvements */
@media (max-width: 1024px) {
    .actions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .actions-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .quick-actions {
        padding: 3rem 0;
    }
    
    .cta-section {
        padding: 3rem 0;
    }
    
    .form-section {
        padding: 3rem 0;
    }
}