/* MakersPreview Shared Styles */

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
    z-index: auto;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><path d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/></g></g></svg>');
    z-index: 0;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #1e3a8a 0%, #065f46 100%);
    }

    body::before {
        background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.03"><path d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/></g></g></svg>');
    }
}

main {
    position: relative;
    z-index: 1;
}

/* Hero Section */
.hero-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: #1a202c;
    padding: 30px 20px;
    position: relative;
    overflow: visible;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 2;
}

@media (prefers-color-scheme: dark) {
    .hero-section {
        background: rgba(30, 41, 59, 0.95);
        color: #e2e8f0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* Region Switcher */
.region-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.region-dropdown {
    position: relative;
    display: inline-block;
    z-index: 1000;
}

.region-current {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 8px 16px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: #4a5568;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    min-width: 120px;
}

.region-current:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

@media (prefers-color-scheme: dark) {
    .region-current {
        background: rgba(51, 65, 85, 0.95);
        color: #cbd5e1;
        border: 1px solid rgba(59, 130, 246, 0.3);
    }

    .region-current:hover {
        background: rgba(71, 85, 105, 0.95);
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    }
}

.region-flag {
    font-size: 1.2rem;
    line-height: 1;
    display: inline-block;
    width: 1.5em;
    text-align: center;
}

.region-arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.region-dropdown.open .region-arrow {
    transform: rotate(180deg);
}

.region-options {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    padding: 8px;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 1001;
}

.region-dropdown.open .region-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (prefers-color-scheme: dark) {
    .region-options {
        background: rgba(30, 41, 59, 0.98);
        border: 1px solid rgba(59, 130, 246, 0.3);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    }
}

.region-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
}

.region-option:hover {
    background: linear-gradient(135deg, #3b82f6, #10b981);
    color: white;
}

.region-option.active {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

@media (prefers-color-scheme: dark) {
    .region-option {
        color: #cbd5e1;
    }

    .region-option.active {
        background: rgba(59, 130, 246, 0.2);
        color: #60a5fa;
    }
}

/* Hero Content */
.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.app-icon-large {
    width: 180px;
    height: 180px;
    border-radius: 40px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
    text-align: left;
}

.hero-section h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 700;
    background: linear-gradient(135deg, #3b82f6, #06d6a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.hero-section .tagline {
    font-size: 1.3rem;
    margin-bottom: 0;
    opacity: 0.8;
    position: relative;
    z-index: 1;
    color: #4a5568;
    font-weight: 300;
}

@media (prefers-color-scheme: dark) {
    .hero-section .tagline {
        color: #94a3b8;
    }
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.feature-card h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

/* Specs Table */
.specs-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-top: 30px;
}

.specs-table table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table th,
.specs-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.specs-table th {
    background: #f8f9fa;
    font-weight: bold;
    color: #333;
    width: 30%;
}

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

/* Formats Section */
.formats-section {
    text-align: center;
    padding: 0;
    max-width: 90%;
    margin: 0 auto 30px;
}

@media (min-width: 768px) {
    .formats-section {
        max-width: 600px;
    }
}

.supported-formats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 0 50px 0;
}

.format-badge {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 28px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.05rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    background-clip: padding-box;
}

.format-badge span:first-child {
    background: linear-gradient(135deg, #3b82f6, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (prefers-color-scheme: dark) {
    .format-badge {
        background: rgba(30, 41, 59, 0.95);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    }
}

/* CTA Section */
.cta-section {
    padding: 30px 40px;
    max-width: 600px;
    margin: 0 auto;
    width: calc(100% - 40px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

@media (prefers-color-scheme: dark) {
    .cta-section {
        background: rgba(30, 41, 59, 0.95);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }
}

.cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.price-section {
    flex: 1;
    text-align: right;
}

.price-tag {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #3b82f6, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
    margin: 0;
    line-height: 1.2;
}

.price-info {
    font-size: 1rem;
    color: #1a202c;
    margin-top: 8px;
    font-weight: 500;
}

@media (prefers-color-scheme: dark) {
    .price-info {
        color: #cbd5e1;
    }
}

.download-button {
    display: inline-block;
    flex-shrink: 0;
}

.download-button a {
    display: inline-block;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.download-button a:hover {
    transform: scale(1.05);
}

.download-button img {
    height: 55px;
    border-radius: 8px;
}

/* Screenshots Carousel */
.screenshots-section {
    padding: 20px 20px 40px;
    max-width: 800px;
    margin: 0 auto;
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.carousel-wrapper {
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(255,255,255,0.5);
    background: white;
}

@media (prefers-color-scheme: dark) {
    .carousel-wrapper {
        box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.1);
        background: #1e293b;
    }
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.screenshot-item {
    flex: 0 0 100%;
    width: 100%;
    height: 500px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 1.5rem;
}

@media (prefers-color-scheme: dark) {
    .screenshot-item {
        background: #1e293b;
    }
}

.screenshot-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    margin-top: -25px;
    background: rgba(255, 255, 255, 0.98);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #3b82f6;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
    z-index: 10;
    backdrop-filter: blur(10px);
    line-height: 1;
}

.carousel-btn:hover {
    background: linear-gradient(135deg, #3b82f6, #10b981);
    color: white;
}

@media (prefers-color-scheme: dark) {
    .carousel-btn {
        background: rgba(51, 65, 85, 0.98);
        color: #60a5fa;
        box-shadow: 0 4px 20px rgba(59, 130, 246, 0.5);
    }
}

.carousel-btn-prev {
    left: -25px;
}

.carousel-btn-next {
    right: -25px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
}

.carousel-dot.active {
    background: linear-gradient(135deg, #3b82f6, #10b981);
    width: 30px;
    border-radius: 5px;
}

@media (prefers-color-scheme: dark) {
    .carousel-dot {
        background: #475569;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .cta-section {
        padding: 30px 20px;
    }

    .cta-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

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

    .download-button img {
        height: 50px;
    }

    .hero-section {
        padding: 40px 20px;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }

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

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section .tagline {
        font-size: 1.1rem;
    }

    .app-icon-large {
        width: 120px;
        height: 120px;
    }

    .carousel-container {
        max-width: 90%;
    }

    .screenshot-item {
        height: 350px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .carousel-btn-prev {
        left: 10px;
    }

    .carousel-btn-next {
        right: 10px;
    }

    .price-tag {
        font-size: 2rem;
    }

    .download-button img {
        height: 50px;
    }
}
