/*
Theme Name: ArtStyle UX Cyber
Theme URI: https://artstyleux.com
Author: Automotive Security Team
Description: A professional theme for vehicle cybersecurity and automotive protection
Version: 1.0
Text Domain: asx-theme
*/

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

:root {
    --asx-bg-light: #ffffff;
    --asx-bg-gray: #f8f9fa;
    --asx-primary: #2563eb;
    --asx-secondary: #1e40af;
    --asx-accent: #0ea5e9;
    --asx-text: #1f2937;
    --asx-text-muted: #6b7280;
    --asx-border: #e5e7eb;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--asx-bg-light);
    color: var(--asx-text);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    color: var(--asx-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--asx-secondary);
}

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

/* Header */
.asx-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--asx-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.asx-header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.asx-logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--asx-primary);
    letter-spacing: -0.5px;
}

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

.asx-nav-menu a {
    color: var(--asx-text);
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
    font-size: 1rem;
}

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

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

.asx-mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.asx-hamburger {
    width: 28px;
    height: 2px;
    background: var(--asx-text);
    position: relative;
    transition: all 0.3s ease;
}

.asx-hamburger::before,
.asx-hamburger::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 2px;
    background: var(--asx-text);
    transition: all 0.3s ease;
}

.asx-hamburger::before {
    top: -8px;
}

.asx-hamburger::after {
    top: 8px;
}

.asx-mobile-toggle.active .asx-hamburger {
    background: transparent;
}

.asx-mobile-toggle.active .asx-hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.asx-mobile-toggle.active .asx-hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

/* Hero Section */
.asx-hero {
    padding: 10rem 2rem 6rem;
    background: linear-gradient(135deg, #f0f7ff 0%, #e0f2fe 100%);
    position: relative;
    overflow: hidden;
}

.asx-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, transparent 100%);
    pointer-events: none;
}

.asx-hero-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.asx-hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: var(--asx-text);
}

.asx-hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--asx-text-muted);
    max-width: 700px;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

/* About Section with Image */
.asx-about {
    padding: 6rem 2rem;
    background: var(--asx-bg-light);
}

.asx-about-container {
    max-width: 1400px;
    margin: 0 auto;
}

.asx-about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: center;
}

.asx-about-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--asx-text);
}

.asx-about-text {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--asx-text-muted);
    margin-bottom: 1rem;
}

.asx-about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.15);
}

.asx-about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Images Section */
.asx-images-section {
    padding: 6rem 2rem;
    background: var(--asx-bg-gray);
}

.asx-section-header {
    max-width: 1400px;
    margin: 0 auto 4rem;
    text-align: center;
}

.asx-section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--asx-text);
}

.asx-section-subtitle {
    font-size: 1.2rem;
    color: var(--asx-text-muted);
}

.asx-images-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.asx-image-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--asx-bg-light);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.asx-image-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.2);
}

.asx-image-wrapper {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.asx-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.asx-image-card:hover .asx-image-wrapper img {
    transform: scale(1.05);
}

.asx-image-content {
    padding: 1.5rem;
}

.asx-image-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--asx-text);
}

.asx-image-content p {
    font-size: 0.95rem;
    color: var(--asx-text-muted);
    line-height: 1.6;
}

/* Icons Section */
.asx-icons-section {
    padding: 6rem 2rem;
    background: var(--asx-bg-light);
}

.asx-icons-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
}

.asx-icon-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: var(--asx-bg-gray);
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.asx-icon-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.15);
}

.asx-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.asx-icon-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--asx-text);
}

.asx-icon-card p {
    font-size: 0.95rem;
    color: var(--asx-text-muted);
    line-height: 1.6;
}

/* Main Content */
.asx-main {
    padding-top: 80px;
}

.asx-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.asx-section {
    margin-bottom: 4rem;
}

/* Posts Grid */
.asx-posts-section {
    padding: 6rem 2rem;
    background: var(--asx-bg-gray);
}

.asx-posts-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.asx-post-card {
    background: var(--asx-bg-light);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.asx-post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.2);
}

.asx-post-thumbnail {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
}

.asx-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.asx-post-card:hover .asx-post-thumbnail img {
    transform: scale(1.05);
}

.asx-post-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--asx-primary);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.asx-post-content {
    padding: 1.8rem;
}

.asx-post-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.asx-post-title a {
    color: var(--asx-text);
}

.asx-post-title a:hover {
    color: var(--asx-primary);
}

.asx-post-excerpt {
    color: var(--asx-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.asx-post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--asx-text-muted);
}

/* Contact Section */
.asx-contact-section {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #f0f7ff 0%, #e0f2fe 100%);
}

.asx-contact-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.asx-contact-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--asx-text);
}

.asx-contact-text {
    font-size: 1.1rem;
    color: var(--asx-text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

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

.asx-contact-item {
    background: var(--asx-bg-light);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.asx-contact-item h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--asx-primary);
}

.asx-contact-item p {
    color: var(--asx-text-muted);
    line-height: 1.6;
}

/* Pagination */
.asx-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.asx-pagination a,
.asx-pagination span {
    padding: 0.8rem 1.5rem;
    background: var(--asx-bg-light);
    border: 1px solid var(--asx-border);
    border-radius: 8px;
    color: var(--asx-text);
    font-weight: 600;
    transition: all 0.3s ease;
}

.asx-pagination a:hover {
    background: var(--asx-primary);
    border-color: var(--asx-primary);
    color: #fff;
    transform: translateY(-2px);
}

.asx-pagination .current {
    background: var(--asx-primary);
    border-color: var(--asx-primary);
    color: #fff;
}

/* Single Post */
.asx-single-header {
    max-width: 900px;
    margin: 0 auto 3rem;
    text-align: center;
}

.asx-single-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.asx-single-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    color: var(--asx-text-muted);
    margin-bottom: 2rem;
}

.asx-single-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.9;
}

.asx-single-content p {
    margin-bottom: 1.5rem;
}

.asx-single-content h2 {
    font-size: 2rem;
    margin: 2.5rem 0 1.5rem;
    color: var(--asx-text);
}

.asx-single-content h3 {
    font-size: 1.6rem;
    margin: 2rem 0 1rem;
}

.asx-single-content img {
    margin: 2rem 0;
    border-radius: 12px;
}

.asx-single-content ul,
.asx-single-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.asx-single-content li {
    margin-bottom: 0.7rem;
}

/* Footer */
.asx-footer {
    background: var(--asx-text);
    color: #fff;
    padding: 3rem 2rem 2rem;
}

.asx-footer-container {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.asx-footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #fff;
}

.asx-footer-text {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

.asx-footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    list-style: none;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.asx-footer-links a {
    color: rgba(255, 255, 255, 0.8);
}

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

.asx-footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .asx-about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .asx-images-grid {
        grid-template-columns: 1fr;
    }
    
    .asx-icons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .asx-header-container {
        padding: 1rem;
    }
    
    .asx-nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 0;
        transition: left 0.3s ease;
        border-right: 1px solid var(--asx-border);
    }
    
    .asx-nav-menu.active {
        left: 0;
    }
    
    .asx-nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--asx-border);
    }
    
    .asx-nav-menu a {
        display: block;
        padding: 1.5rem 0;
        width: 100%;
    }
    
    .asx-mobile-toggle {
        display: block;
    }
    
    .asx-hero {
        padding: 7rem 1.5rem 4rem;
    }
    
    .asx-container,
    .asx-about,
    .asx-images-section,
    .asx-icons-section,
    .asx-posts-section,
    .asx-contact-section {
        padding: 4rem 1.5rem;
    }
    
    .asx-icons-grid {
        grid-template-columns: 1fr;
    }
    
    .asx-posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .asx-hero-title {
        font-size: 2rem;
    }
    
    .asx-section-title {
        font-size: 1.8rem;
    }
    
    .asx-single-title {
        font-size: 1.8rem;
    }
}
