/* ===== App Page Specific Styles ===== */

.app-page {
    position: relative;
    z-index: 1;
    padding-top: 70px;
}

/* ===== App Hero Section ===== */
.app-hero {
    background: var(--card-bg);
    padding: 6rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.app-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.app-hero-text h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    color: var(--accent-yellow);
}

.hero-feature-item span:last-child {
    font-weight: 600;
    color: var(--text-primary);
}

.app-hero-phone {
    display: flex;
    justify-content: center;
    align-items: center;
}

.large-phone-frame {
    width: 320px;
    height: 640px;
    background: var(--card-bg);
    border-radius: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.large-phone-screen {
    width: 100%;
    height: 100%;
    background: #1A1D2E;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screen-placeholder {
    text-align: center;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    padding-bottom: 3rem;
}

.screen-placeholder img {
    max-width: 100%;
    max-height: 50%;
    width: 100%;
    height: auto;
    object-fit: contain;
    margin-bottom: 1rem;
}

.screen-placeholder h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.6);
}

.screen-placeholder p {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.6);
}

/* Background gallery - images rotate behind text */
.app-bg-gallery {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.app-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.app-bg-image.active {
    opacity: 1;
    z-index: 1;
}

.screen-placeholder {
    position: relative;
    z-index: 2;
}

/* ===== App Screens Section ===== */
.app-screens {
    padding: 6rem 2rem;
    background: var(--primary-bg);
}

.app-screens-content {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 4rem;
}

.screens-grid {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.screen-item {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: center;
}

.screen-item.reverse {
    grid-template-columns: 1.5fr 1fr;
}

.screen-phone {
    display: flex;
    justify-content: center;
}

.phone-frame {
    width: 240px;
    height: 480px;
    background: var(--card-bg);
    border-radius: 32px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    transition: transform var(--transition-normal);
}

.screen-item:hover .phone-frame {
    transform: scale(1.05);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-bg) 0%, var(--primary-bg) 100%);
}

.screen-content {
    width: 100%;
    height: 100%;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.content-header {
    margin-bottom: 1rem;
}

.content-header h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.content-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Screen-specific styles */
.magyarazo .content-body {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 1.5rem;
}

.explanation-card p {
    color: var(--text-secondary);
    text-align: center;
}

.video-stream .content-body {
    background: var(--card-bg);
    border-radius: 16px;
}

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

.video-placeholder svg {
    color: var(--accent-yellow);
    margin-bottom: 0.5rem;
}

.video-placeholder p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.jatek .content-body {
    background: var(--card-bg);
    border-radius: 16px;
}

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

.game-placeholder svg {
    color: var(--accent-yellow);
    margin-bottom: 0.5rem;
}

.game-placeholder p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.media .content-body {
    padding: 1rem;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    width: 100%;
}

.media-item {
    background: var(--card-bg);
    border-radius: 8px;
    aspect-ratio: 1;
}

.valos .content-body {
    background: var(--card-bg);
    border-radius: 16px;
}

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

.profile-placeholder svg {
    color: var(--accent-yellow);
    margin-bottom: 0.5rem;
}

.profile-placeholder p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Screen Description */
.screen-description h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.screen-description p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.screen-description ul {
    list-style: none;
    padding: 0;
}

.screen-description ul li {
    font-size: 1rem;
    color: var(--text-primary);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.screen-description ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-yellow);
    font-weight: 700;
}

/* ===== Features Overview ===== */
.features-overview {
    padding: 6rem 2rem;
    background: var(--secondary-bg);
}

.features-content {
    max-width: 1200px;
    margin: 0 auto;
}

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

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.feature-icon-large {
    width: 48px;
    height: 48px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon-large svg {
    width: 48px;
    height: 48px;
    color: var(--accent-yellow);
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.feature-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== CTA Section ===== */
.app-cta {
    padding: 6rem 2rem;
    background: var(--secondary-bg);
    text-align: center;
}

.app-cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.app-cta h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.app-cta p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.cta-button.primary {
    background: var(--accent-yellow);
    color: var(--primary-bg);
    border: 2px solid var(--accent-yellow);
}

.cta-button.primary:hover {
    background: #f5c24d;
    border-color: #f5c24d;
    transform: scale(1.05);
}

.cta-button.secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--text-primary);
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

/* ===== Active Navigation Link ===== */
.main-nav a.active {
    color: var(--accent-yellow);
}

.main-nav a.active::after {
    width: 100%;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .app-hero-content {
        gap: 3rem;
    }

    .app-hero-text h1 {
        font-size: 2.5rem;
    }

    .large-phone-frame {
        width: 280px;
        height: 560px;
    }

    .screen-item {
        gap: 2rem;
    }

    .phone-frame {
        width: 200px;
        height: 400px;
    }
}

@media (max-width: 768px) {
    .app-hero {
        padding: 4rem 1.5rem 3rem;
    }

    .app-hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        display: flex;
        flex-direction: column;
    }

    .app-hero-phone {
        order: 2;
        margin-top: 2rem;
    }

    .app-hero-text {
        order: 1;
    }

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

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-features {
        grid-template-columns: 1fr;
    }

    .large-phone-frame {
        width: 240px;
        height: 480px;
    }

    .app-screens {
        padding: 4rem 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-description {
        font-size: 1rem;
        margin-bottom: 3rem;
    }

    .screens-grid {
        gap: 4rem;
    }

    .screen-item,
    .screen-item.reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .phone-frame {
        width: 220px;
        height: 440px;
    }

    .screen-description h3 {
        font-size: 1.5rem;
    }

    .screen-description p {
        font-size: 1rem;
    }

    .features-overview {
        padding: 4rem 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card {
        padding: 2rem;
    }

    .app-cta {
        padding: 4rem 1.5rem;
    }

    .app-cta h2 {
        font-size: 1.8rem;
    }

    .app-cta p {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-button {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .app-hero-text h1 {
        font-size: 1.75rem;
    }

    .large-phone-frame {
        width: 200px;
        height: 400px;
    }

    .phone-frame {
        width: 180px;
        height: 360px;
    }

    .section-title {
        font-size: 1.75rem;
    }
}
