/* ===== APP PAGE STYLES ===== */

/* App Hero */
.app-hero {
    padding: 80px 0 60px;
    background: #f3f8fc;
}

.app-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.app-badge {
    display: inline-block;
    background: #4A90E2;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.app-hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.2;
    margin-bottom: 20px;
}

.app-hero-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 40px;
}

/* Store Buttons */
.app-store-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: nowrap;
    align-items: center;
}

.app-store-buttons.app-store-buttons--centered {
    justify-content: center;
}

.store-btn {
    display: inline-block;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.store-btn:hover {
    transform: translateY(-3px);
    opacity: 0.85;
}

.store-btn img {
    height: clamp(30px, 7.5vw, 48px);
    width: auto;
    display: block;
}

/* App Hero Mockup */
.app-hero-mockup {
    display: flex;
    justify-content: center;
}

.app-logo-img {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 56px;
    box-shadow: 0 20px 60px rgba(74, 144, 226, 0.25);
}

/* Screenshots Section */
.screenshots {
    padding: 100px 0;
    background: white;
}

.screenshots-title {
    text-align: center;
    margin-bottom: 60px;
}

.screenshots-gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.screenshot-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.screenshot-placeholder {
    width: 100%;
    aspect-ratio: 9 / 16;
    background: #f3f8fc;
    border: 2px dashed #4A90E2;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4A90E2;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.screenshot-placeholder:hover {
    opacity: 1;
}

.screenshot-caption {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

.screenshot-thumb {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: zoom-in;
    display: block;
}

.screenshot-thumb:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-height: 90vh;
    max-width: 90vw;
    border-radius: 12px;
    object-fit: contain;
    user-select: none;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: fixed;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    line-height: 1;
    z-index: 10000;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-close {
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
}

.lightbox-close svg {
    width: 16px;
    height: 16px;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev svg,
.lightbox-next svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 600px) {
    .lightbox-prev,
    .lightbox-next {
        top: auto;
        bottom: 24px;
        transform: none;
        width: 48px;
        height: 48px;
        background: rgba(255, 255, 255, 0.2);
    }

    .lightbox-prev {
        left: calc(50% - 56px);
    }

    .lightbox-next {
        right: calc(50% - 56px);
    }

    .lightbox-close {
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
    }

    .lightbox-img {
        max-height: 80vh;
        margin-bottom: 56px;
    }
}

/* Features Section */
.app-features {
    padding: 100px 0;
    background: #f3f8fc;
}

.features-title {
    text-align: center;
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-item {
    background: white;
    padding: 36px 28px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.feature-item:hover {
    border-color: #4A90E2;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(74, 144, 226, 0.15);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.feature-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.feature-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* Documents Section */
.app-documents {
    padding: 100px 0;
    background: #f3f8fc;
}

.documents-title {
    text-align: center;
    margin-bottom: 60px;
}

.documents-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
    align-items: stretch;
}

.document-card {
    display: flex;
    gap: 24px;
    padding: 36px 32px;
    background: white;
    border-radius: 16px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    align-items: flex-start;
}

.document-card:hover {
    border-color: #4A90E2;
    box-shadow: 0 8px 30px rgba(74, 144, 226, 0.12);
}

.document-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
}

.document-icon svg {
    width: 100%;
    height: 100%;
}

.document-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.document-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.4;
}

.document-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.document-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4A90E2;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.document-link:hover {
    color: #357ABD;
    text-decoration: underline;
}

.document-link--orange {
    color: #ff8562;
}

.document-link--orange:hover {
    color: #e06b45;
}

.document-email {
    color: #ff8562;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

.document-email:hover {
    text-decoration: underline;
}

.doc-link-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Awards Section */
.app-awards {
    padding: 100px 0;
    background: white;
}

.awards-title {
    text-align: center;
    margin-bottom: 60px;
}

.award-card {
    max-width: 960px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 52px 48px;
    box-shadow: 0 8px 40px rgba(212, 160, 23, 0.12);
    border: 1px solid rgba(212, 160, 23, 0.25);
}

.award-layout {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: center;
}

.award-image-wrap {
    display: flex;
    justify-content: center;
}

.award-img {
    max-width: 240px;
    max-height: 300px;
    width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.award-img:hover {
    transform: translateY(-6px);
}

.award-center {
    text-align: center;
    padding: 0 24px;
    min-width: 220px;
}

.award-place-badge {
    display: inline-block;
    background: linear-gradient(135deg, #D4A017 0%, #F5C842 100%);
    color: white;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 10px 28px;
    border-radius: 50px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(212, 160, 23, 0.35);
}

.award-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.5;
    margin-bottom: 12px;
}

.award-event {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* CTA Section */
.app-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #2c3e50 0%, #4A90E2 100%);
    text-align: center;
    color: white;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.cta-description {
    font-size: 1.1rem;
    opacity: 0.85;
    margin-bottom: 40px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .screenshots-gallery {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .store-btn img {
        height: clamp(30px, 4vw, 44px);
    }
}

@media (max-width: 768px) {
    .app-hero-content {
        grid-template-columns: 1fr;
        text-align: left;
        position: relative;
    }

    .app-hero-text {
        padding-right: 110px;
    }

    .app-hero-mockup {
        position: absolute;
        top: 0;
        right: 0;
    }

    .app-logo-img {
        width: 90px;
        height: 90px;
        border-radius: 20px;
    }

    .app-store-buttons {
        justify-content: flex-start;
    }

    .app-hero-title {
        font-size: 1.8rem;
    }

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

    .documents-grid {
        grid-template-columns: 1fr;
    }

    .document-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-title {
        font-size: 1.8rem;
    }

    .award-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .award-card {
        padding: 36px 24px;
    }

    .award-center {
        padding: 0;
        order: -1;
    }

    .award-img {
        max-width: 180px;
        max-height: 220px;
    }
}

@media (max-width: 560px) {
    .app-hero {
        padding: 48px 0 36px;
    }

    .app-hero-content {
        position: static;
        gap: 20px;
    }

    .app-hero-text {
        padding-right: 0;
    }

    .app-hero-mockup {
        position: static;
        justify-content: flex-start;
        order: -1;
    }

    .app-logo-img {
        width: 64px;
        height: 64px;
        border-radius: 14px;
    }

    .app-hero-title {
        font-size: 1.6rem;
    }

    .app-store-buttons {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .screenshots-gallery {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
}
