/* AI Website Creator Frontend Styles */

/* Hero Section Base Styles */
.aiwc-hero-section {
    position: relative;
    overflow: hidden;
    width: 100%;
    background: #000;
}

/* Full Width Layout */
.aiwc-hero-section[data-layout="full-width"] {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Full Screen Layout */
.aiwc-hero-section[data-layout="full-screen"] {
    height: 100vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Container Layout */
.aiwc-hero-section[data-layout="container"] {
    max-width: 1400px;
    margin: 0 auto;
}

/* Hero Slideshow */
.aiwc-hero-slideshow {
    position: relative;
    width: 100%;
    height: 600px;
    background: #000;
}

/* Hero Single Image */
.aiwc-hero-single {
    position: relative;
    width: 100%;
    height: 600px;
}

/* Hero Slides */
.aiwc-hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.aiwc-hero-slide.active {
    opacity: 1;
    z-index: 5;
}

/* Hero Images */
.aiwc-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Aspect Ratio Support */
.aiwc-hero-section[data-aspect="16:9"] .aiwc-hero-slideshow,
.aiwc-hero-section[data-aspect="16:9"] .aiwc-hero-single {
    aspect-ratio: 16/9;
    height: auto;
}

.aiwc-hero-section[data-aspect="21:9"] .aiwc-hero-slideshow,
.aiwc-hero-section[data-aspect="21:9"] .aiwc-hero-single {
    aspect-ratio: 21/9;
    height: auto;
}

.aiwc-hero-section[data-aspect="4:3"] .aiwc-hero-slideshow,
.aiwc-hero-section[data-aspect="4:3"] .aiwc-hero-single {
    aspect-ratio: 4/3;
    height: auto;
}

/* Hero Overlay */
.aiwc-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.2) 0%,
        rgba(0,0,0,0.4) 50%,
        rgba(0,0,0,0.6) 100%
    );
    z-index: 10;
}

/* Hero Content */
.aiwc-hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 20;
    width: 90%;
    max-width: 1200px;
    padding: 20px;
}

.aiwc-hero-inner {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Typography */
.aiwc-hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.aiwc-hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.8rem);
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
    font-weight: 300;
    line-height: 1.4;
    opacity: 0.95;
}

/* Hero Buttons */
.aiwc-hero-buttons {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.aiwc-btn {
    padding: 14px 35px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
}

.aiwc-btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.aiwc-btn:hover::before {
    width: 300px;
    height: 300px;
}

.aiwc-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.aiwc-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
}

.aiwc-btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.1);
}

.aiwc-btn-secondary:hover {
    background: white;
    color: #333;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255,255,255,0.3);
}

/* Hero Controls */
.aiwc-hero-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 25;
    pointer-events: none;
}

.aiwc-hero-controls button {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    font-size: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    pointer-events: all;
}

.aiwc-hero-controls button:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
    transform: scale(1.1);
}

/* Hero Indicators */
.aiwc-hero-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 25;
}

.aiwc-hero-indicators .indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.aiwc-hero-indicators .indicator:hover {
    background: rgba(255,255,255,0.6);
    transform: scale(1.2);
}

.aiwc-hero-indicators .indicator.active {
    background: white;
    width: 40px;
    border-radius: 20px;
    border-color: rgba(255,255,255,0.5);
}

/* Parallax Effect */
[data-parallax="true"] {
    overflow: hidden;
}

[data-parallax="true"] .aiwc-hero-image {
    transform: translateZ(0) scale(1.1);
    will-change: transform;
    transition: transform 0.5s ease-out;
}

/* Content Sections */
.aiwc-content-section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.aiwc-content-section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
    color: #333;
    text-align: center;
}

.aiwc-content-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Content Images Grid */
.aiwc-content-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.aiwc-content-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.aiwc-content-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.aiwc-content-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Image Attribution */
.aiwc-image-attribution {
    background: rgba(0,0,0,0.8);
    color: rgba(255,255,255,0.8);
    padding: 8px 15px;
    font-size: 11px;
    text-align: center;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.aiwc-image-attribution a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s;
}

.aiwc-image-attribution a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .aiwc-hero-slideshow,
    .aiwc-hero-single {
        height: 500px;
    }
    
    .aiwc-hero-title {
        font-size: 3rem;
    }
    
    .aiwc-hero-subtitle {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .aiwc-hero-slideshow,
    .aiwc-hero-single {
        height: 400px;
    }
    
    .aiwc-hero-title {
        font-size: 2.2rem;
        margin-bottom: 0.8rem;
    }
    
    .aiwc-hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .aiwc-hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .aiwc-btn {
        width: 250px;
        text-align: center;
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .aiwc-hero-controls {
        padding: 0 15px;
    }
    
    .aiwc-hero-controls button {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }
    
    .aiwc-hero-indicators {
        bottom: 25px;
    }
    
    .aiwc-content-images {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .aiwc-hero-slideshow,
    .aiwc-hero-single {
        height: 350px;
    }
    
    .aiwc-hero-title {
        font-size: 1.8rem;
    }
    
    .aiwc-hero-subtitle {
        font-size: 1rem;
    }
    
    .aiwc-hero-content {
        width: 95%;
    }
    
    .aiwc-btn {
        width: 200px;
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}

/* High Resolution Support */
@media (min-width: 1920px) {
    .aiwc-hero-slideshow,
    .aiwc-hero-single {
        height: 800px;
    }
    
    .aiwc-hero-content {
        max-width: 1400px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .aiwc-content-section h2 {
        color: #f0f0f0;
    }
    
    .aiwc-content-section p {
        color: #ccc;
    }
}

/* Lazy Loading Support */
.aiwc-hero-image[loading="lazy"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Print Styles */
@media print {
    .aiwc-hero-section {
        height: auto;
        page-break-inside: avoid;
    }
    
    .aiwc-hero-controls,
    .aiwc-hero-indicators {
        display: none;
    }
    
    .aiwc-hero-slide {
        position: static;
        opacity: 1;
    }
}

/* Accessibility */
.aiwc-hero-controls button:focus,
.aiwc-btn:focus {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .aiwc-hero-slide,
    .aiwc-hero-inner,
    .aiwc-btn,
    .aiwc-content-image {
        animation: none;
        transition: none;
    }
}
