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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: #666;
}

a {
    color: #ff6b35;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #e55a2b;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    color: white;
}

.btn-secondary {
    background: white;
    color: #ff6b35;
    border: 2px solid #ff6b35;
}

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

.btn-outline {
    background: transparent;
    color: #333;
    border: 2px solid #ddd;
}

.btn-outline:hover {
    background: #333;
    color: white;
    border-color: #333;
}

/* Header */
.header {
    background: white;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav {
    padding: 1rem 0;
}

.nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h1 {
    font-size: 1.5rem;
    color: #ff6b35;
    margin-bottom: 0;
}

.tagline {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0;
}

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

.nav-link {
    color: #333;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav-link.active,
.nav-link:hover {
    color: #ff6b35;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: #ff6b35;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    transition: 0.3s;
}

/* Hero Author Section */
.hero-author {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.author-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-right: 1rem;
}

.author-info h3 {
    margin: 0;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}

.author-info p {
    margin: 0.25rem 0 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

/* Mobile responsiveness for author section */
@media (max-width: 768px) {
    .hero-author {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .author-photo {
        margin-right: 0;
        margin-bottom: 0.5rem;
        width: 60px;
        height: 60px;
    }
    
    .author-info h3 {
        font-size: 1rem;
    }
    
    .author-info p {
        font-size: 0.8rem;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    padding: 120px 0 80px;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 3rem 0;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Warning Banner */
.warning-banner {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 1rem 0;
}

.warning-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    text-align: center;
}

.warning-icon {
    font-size: 1.5rem;
}

.warning-text {
    color: #856404;
    font-weight: 500;
}

/* Sections */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Featured Articles */
.featured-articles {
    padding: 80px 0;
    background: white;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.article-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.article-card.featured {
    border: 2px solid #ff6b35;
    position: relative;
}

.article-image {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.game-icon {
    font-size: 3rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.article-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.9);
    color: #ff6b35;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.article-content {
    padding: 1.5rem;
}

.article-title {
    margin-bottom: 1rem;
}

.article-title a {
    color: #333;
    font-weight: 600;
}

.article-title a:hover {
    color: #ff6b35;
}

.article-excerpt {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #888;
}

.article-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: #f0f0f0;
    color: #666;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.view-all-articles {
    text-align: center;
}

/* All Articles Section */
.all-articles {
    padding: 80px 0;
    background: #f8f9fa;
}

.category-filter {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: white;
    border: 2px solid #ddd;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    background: #ff6b35;
    color: white;
    border-color: #ff6b35;
}

.articles-list {
    display: grid;
    gap: 1rem;
}

.article-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.article-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.article-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.article-info {
    flex: 1;
}

.article-info h4 {
    margin-bottom: 0.5rem;
}

.article-info h4 a {
    color: #333;
    font-weight: 600;
}

.article-info h4 a:hover {
    color: #ff6b35;
}

.article-info p {
    color: #666;
    margin-bottom: 0.5rem;
}

.article-stats {
    font-size: 0.875rem;
    color: #888;
}

.article-status {
    flex-shrink: 0;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.critical {
    background: #fee;
    color: #c53030;
}

.status-badge.warning {
    background: #fffbeb;
    color: #d69e2e;
}

.status-badge.moderate {
    background: #f0fff4;
    color: #38a169;
}

/* Safety Guide */
.safety-guide {
    padding: 80px 0;
    background: white;
}

.safety-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.safety-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.safety-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    background: white;
}

.safety-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.safety-card h3 {
    color: #333;
    margin-bottom: 1rem;
}

.safety-card p {
    margin-bottom: 1.5rem;
}

.safety-card ul {
    list-style: none;
    text-align: left;
}

.safety-card li {
    padding: 0.5rem 0;
    color: #666;
    position: relative;
    padding-left: 1.5rem;
}

.safety-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #38a169;
    font-weight: bold;
}

/* Emergency Resources */
.emergency-resources {
    padding: 60px 0;
    background: #fff5f5;
    border-top: 3px solid #fed7d7;
}

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

.resource-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.resource-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    background: #fed7d7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.resource-info h4 {
    margin-bottom: 0.5rem;
    color: #333;
}

.resource-info p {
    margin-bottom: 0.25rem;
    color: #c53030;
    font-weight: 600;
}

.resource-info span {
    font-size: 0.875rem;
    color: #666;
}

/* Footer */
.footer {
    background: #2d3748;
    color: white;
    padding: 60px 0 20px;
}

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

.footer-section h3 {
    color: #ff6b35;
    margin-bottom: 1rem;
}

.footer-section p {
    color: #cbd5e0;
    line-height: 1.6;
}

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

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

.footer-links a {
    color: #cbd5e0;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ff6b35;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    color: #cbd5e0;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: #ff6b35;
    background: rgba(255, 107, 53, 0.1);
}

.footer-bottom {
    border-top: 1px solid #4a5568;
    padding-top: 2rem;
}

.footer-disclaimer {
    background: #1a202c;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid #ff6b35;
}

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

.footer-copyright {
    text-align: center;
    color: #a0aec0;
    font-size: 0.875rem;
}

/* Author Info Mobile Styles */
.author-info-mobile {
    margin: 20px 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.author-card {
    padding: 0;
}

.author-row {
    display: flex;
    align-items: flex-start;
    padding: 12px 20px;
    border-bottom: 1px solid #f8f9fa;
    gap: 15px;
}

.author-row:last-child {
    border-bottom: none;
}

.author-row.warning-row {
    background: #fff8f0;
    border-left: 4px solid #ff6b35;
}

.author-label {
    font-weight: 600;
    color: #333;
    min-width: 120px;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.author-value {
    color: #666;
    line-height: 1.5;
    font-size: 0.9rem;
    flex: 1;
}

.warning-row .author-label {
    color: #ff6b35;
}

.warning-row .author-value {
    color: #d63384;
    font-weight: 500;
}

/* Mobile responsiveness for author info */
@media (max-width: 768px) {
    .author-info-mobile {
        margin: 15px 0;
        border-radius: 8px;
    }
    
    .author-row {
        flex-direction: column;
        padding: 15px;
        gap: 8px;
    }
    
    .author-label {
        min-width: auto;
        font-size: 0.85rem;
        font-weight: 700;
    }
    
    .author-value {
        font-size: 0.85rem;
        padding-left: 0;
    }
}

@media (max-width: 480px) {
    .author-row {
        padding: 12px 15px;
    }
    
    .author-label,
    .author-value {
        font-size: 0.8rem;
    }
}

/* Article Info Table Styles */
.article-info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.article-info-table th,
.article-info-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
}

.article-info-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.article-info-table td {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.article-info-table tr:last-child th,
.article-info-table tr:last-child td {
    border-bottom: none;
}

/* Mobile-specific table styles */
@media (max-width: 768px) {
    .article-info-table {
        font-size: 0.8rem;
    }
    
    .article-info-table th,
    .article-info-table td {
        padding: 8px 10px;
        font-size: 0.8rem;
    }
    
    /* Stack table cells vertically on very small screens */
    .article-info-table thead {
        display: none;
    }
    
    .article-info-table,
    .article-info-table tbody,
    .article-info-table tr,
    .article-info-table td {
        display: block;
        width: 100%;
    }
    
    .article-info-table tr {
        background: white;
        border: 1px solid #f0f0f0;
        border-radius: 8px;
        margin-bottom: 10px;
        padding: 15px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    
    .article-info-table td {
        border: none;
        padding: 5px 0;
        position: relative;
        padding-left: 35%;
        text-align: left;
    }
    
    .article-info-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 30%;
        font-weight: 600;
        color: #333;
        text-align: left;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .article-item {
        flex-direction: column;
        text-align: center;
    }
    
    .category-filter {
        flex-direction: column;
        align-items: center;
    }
    
    .safety-grid {
        grid-template-columns: 1fr;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Better mobile typography */
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.3rem; }
    
    /* Mobile table improvements */
    table {
        font-size: 0.8rem;
        overflow-x: auto;
        display: block;
        white-space: nowrap;
    }
    
    /* Mobile content spacing */
    .article-content {
        padding: 1rem;
    }
    
    /* Mobile breadcrumb */
    .breadcrumb {
        font-size: 0.8rem;
        margin: 10px 0;
        overflow-x: auto;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 0 60px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .article-card {
        margin: 0 10px;
    }
    
    .filter-btn {
        font-size: 0.875rem;
        padding: 6px 12px;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft 0.6s ease forwards;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Utility Classes */
.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-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2rem; }

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

/* Print Styles */
@media print {
    .header,
    .footer,
    .hero-cta,
    .mobile-menu-toggle {
        display: none;
    }
    
    .hero {
        background: none;
        color: #333;
    }
    
    .article-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

