/**
 * 88I SEO Theme - Main Stylesheet
 * 
 * @package 88I_SEO_Theme
 * @version 1.0.0
 */

/* ===================================
   TABLE OF CONTENTS
   ===================================
   1. Reset & Base Styles
   2. Header & Navigation
   3. Hero Section
   4. Content Sections
   5. Article Grid
   6. Footer
   7. Responsive Design
   8. Utility Classes
   =================================== */

/* ===================================
   1. RESET & BASE STYLES
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    overflow-x: hidden;
}

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

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

ul, ol {
    list-style: none;
}

/* ===================================
   2. HEADER & NAVIGATION
   =================================== */
.site-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.site-branding {
    font-size: 28px;
    font-weight: bold;
    color: #e94560;
    text-decoration: none;
    letter-spacing: 2px;
}

.main-navigation .primary-menu {
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.main-navigation .primary-menu li {
    position: relative;
}

.main-navigation .primary-menu a {
    color: #fff;
    font-weight: 500;
    padding: 10px 0;
    display: block;
    position: relative;
}

.main-navigation .primary-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #e94560;
    transition: width 0.3s ease;
}

.main-navigation .primary-menu a:hover {
    color: #e94560;
}

.main-navigation .primary-menu a:hover::after {
    width: 100%;
}

.auth-buttons {
    display: flex;
    gap: 15px;
}

.btn-login,
.btn-register {
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-login {
    background: transparent;
    border: 2px solid #e94560;
    color: #e94560;
}

.btn-login:hover {
    background: #e94560;
    color: #fff;
}

.btn-register {
    background: #e94560;
    border: 2px solid #e94560;
    color: #fff;
}

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

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle .hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.menu-toggle:hover .hamburger {
    background: #e94560;
}

.menu-toggle.active .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .hamburger:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ===================================
   3. HERO SECTION
   =================================== */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

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

.hero-title {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: inline-block;
    padding: 15px 40px;
    background: #e94560;
    color: #fff;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(233,69,96,0.3);
}

.hero-cta:hover {
    background: #c93450;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233,69,96,0.4);
}

/* ===================================
   4. CONTENT SECTIONS
   =================================== */
.content-section {
    padding: 60px 0;
    background: #fff;
}

.content-section:nth-child(even) {
    background: #f9f9f9;
}

.section-title {
    font-size: 36px;
    margin-bottom: 30px;
    color: #1a1a2e;
    text-align: center;
    font-weight: 700;
}

.section-content {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   5. ARTICLE GRID
   =================================== */
.article-list {
    padding: 60px 0;
    background: #f9f9f9;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.article-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

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

.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover img {
    transform: scale(1.05);
}

.article-card-content {
    padding: 20px;
}

.article-card-title {
    font-size: 20px;
    margin-bottom: 10px;
    color: #1a1a2e;
    font-weight: 600;
    line-height: 1.3;
}

.article-card-title a {
    color: inherit;
}

.article-card-title a:hover {
    color: #667eea;
}

.article-card-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.article-meta {
    font-size: 14px;
    color: #999;
}

/* ===================================
   6. FOOTER
   =================================== */
.site-footer {
    background: #1a1a2e;
    color: #fff;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: #e94560;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.footer-section p,
.footer-section a {
    color: #ccc;
    line-height: 1.8;
    font-size: 15px;
}

.footer-section a:hover {
    color: #e94560;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #999;
    font-size: 14px;
}

/* ===================================
   7. RESPONSIVE DESIGN
   =================================== */
@media (max-width: 1024px) {
    .article-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        position: relative;
        align-items: center;
    }
    
    .menu-toggle {
        display: block;
        order: 2;
        margin-left: auto;
    }
    
    .site-branding {
        order: 1;
        flex: 1;
    }
    
    .auth-buttons {
        order: 3;
        width: 100%;
        margin-top: 10px;
        display: flex;
    }
    
    .main-navigation {
        display: none;
        width: 100%;
        order: 4;
        margin-top: 15px;
        background: rgba(26, 26, 46, 0.98);
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    }
    
    .main-navigation.active {
        display: block;
        animation: slideDown 0.3s ease;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .main-navigation .primary-menu {
        flex-direction: column;
        gap: 0;
    }
    
    .main-navigation .primary-menu li {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .main-navigation .primary-menu li:last-child {
        border-bottom: none;
    }
    
    .main-navigation .primary-menu a {
        padding: 15px 0;
        font-size: 16px;
    }
    
    .main-navigation .primary-menu a::after {
        display: none;
    }
    
    .auth-buttons {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }
    
    .auth-buttons .btn-login,
    .auth-buttons .btn-register {
        flex: 1;
        max-width: none;
        text-align: center;
        padding: 8px 15px;
        font-size: 13px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .hero-title {
        font-size: 26px;
    }
    
    .hero-cta {
        padding: 12px 30px;
        font-size: 16px;
    }
    
    .btn-login,
    .btn-register {
        padding: 8px 15px;
        font-size: 13px;
    }
}

/* ===================================
   8. BANNER IMAGES SECTION
   =================================== */
.banner-images-section {
    padding: 40px 0;
    background: #f9f9f9;
}

.banner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.banner-item {
    position: relative;
    overflow: hidden;
}

.banner-item a {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.banner-item a:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.banner-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.banner-item a:hover img {
    transform: scale(1.05);
}

/* ===================================
   9. UTILITY CLASSES
   =================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-40 {
    margin-top: 40px;
}

.mb-40 {
    margin-bottom: 40px;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}

/* Screen Reader Text */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Clearfix */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}
