/* App Page Specific Styles */

/* Hero Section for App Page */
.hero.app-page {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="%23f6da24" stop-opacity="0.1"/><stop offset="100%" stop-color="%23f6da24" stop-opacity="0"/></radialGradient></defs><rect width="100" height="100" fill="url(%23a)"/></svg>'), linear-gradient(45deg, #1b0e26, #271a31);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: calc(var(--header-height) + 1rem);
    padding-bottom: 2rem;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

@media (min-width: 900px) {
    .hero.app-page {
        padding-top: calc(var(--header-height) + 2rem);
        padding-bottom: 2rem;
        min-height: 85vh;
    }
}

/* Hero Section Wrapper for App Page */
.hero.app-page .hero__wrap {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
    color: var(--color-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

@media (min-width: 900px) {
    .hero.app-page .hero__wrap {
        flex-direction: row;
        align-items: flex-start;
    }
}

.hero.app-page .hero__content {
    width: 100%;
}

@media (min-width: 900px) {
    .hero.app-page .hero__content {
        width: 55%;
    }
}

/* Hero Image for App Page */
.hero.app-page .hero__image {
    flex: 1;
    text-align: center;
}

.hero.app-page .hero__image img {
    width: 100%;
    height: auto;
    max-width: 400px;
}

/* Hero Title for App Page */
.hero.app-page .hero__title h1 {
    font-weight: 800;
    font-size: 2.6rem;
    line-height: 3.9rem;
    text-align: center;
    color: var(--color-white);
    margin-bottom: 1rem;
}

@media (min-width: 900px) {
    .hero.app-page .hero__title h1 {
        text-align: left;
        font-size: 4rem;
        line-height: 6rem;
    }
}

/* Hero Text for App Page */
.hero.app-page .hero__text {
    font-weight: 500;
    font-size: var(--text-sm);
    line-height: 2.9rem;
    text-align: center;
    color: #fff;
    margin-bottom: 2rem;
}

@media (min-width: 900px) {
    .hero.app-page .hero__text {
        font-size: var(--text-base-size);
        text-align: left;
    }
}

/* App Download Buttons */
.app-download-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

@media (min-width: 900px) {
    .app-download-buttons {
        justify-content: flex-start;
    }
}

.app-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(45deg, #1a1a1a, #333);
    border: 2px solid var(--color-heading);
    border-radius: 15px;
    padding: 1.5rem 2rem;
    text-decoration: none;
    color: var(--color-white);
    transition: all 0.3s;
    min-width: 180px;
}

.app-btn:hover {
    background: linear-gradient(45deg, #333, #555);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(246, 218, 36, 0.3);
}

.app-btn-icon {
    font-size: 2.5rem;
}

.app-btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.app-btn-small {
    font-size: 1.2rem;
    opacity: 0.8;
}

.app-btn-large {
    font-size: 1.6rem;
    font-weight: 700;
}

/* App Features Grid */
.app-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-card {
    background: rgba(39, 26, 49, 0.6);
    border-radius: 15px;
    padding: 2.5rem;
    text-align: center;
    border: 1px solid rgba(246, 218, 36, 0.2);
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(39, 26, 49, 0.9);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--color-heading);
}

.feature-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, var(--color-heading), #fff20b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-title {
    color: var(--color-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-description {
    color: #ccc;
    line-height: 1.6;
}

/* Screenshots Section */
.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.screenshot-item {
    text-align: center;
}

.screenshot-img {
    width: 100%;
    max-width: 250px;
    height: 450px;
    background: linear-gradient(145deg, #1a1a1a, #333);
    border-radius: 25px;
    border: 3px solid var(--color-heading);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    position: relative;
    overflow: hidden;
    padding: 1rem;
}

.screenshot-img img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}


.screenshot-title {
    color: var(--color-heading);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.screenshot-description {
    color: #ccc;
    font-size: 1.4rem;
}

/* System Requirements */
.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin: 3rem 0;
}

.requirement-card {
    background: linear-gradient(145deg, rgba(39, 26, 49, 0.8), rgba(27, 14, 38, 0.8));
    border-radius: 20px;
    padding: 3rem;
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.requirement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--color-heading), #fff20b);
    border-radius: 20px;
    padding: 2px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    z-index: -1;
}

.requirement-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.requirement-icon {
    font-size: 3rem;
}

.requirement-title {
    color: var(--color-heading);
    font-size: 2.2rem;
    font-weight: 700;
}

.requirement-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.requirement-list li {
    padding: 0.8rem 0;
    color: var(--color-white);
    border-bottom: 1px solid rgba(246, 218, 36, 0.1);
    position: relative;
    padding-left: 2rem;
}

.requirement-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-heading);
    font-weight: bold;
}

.requirement-list li:last-child {
    border-bottom: none;
}

/* Up Button for App Page */
.up_button {
    bottom: 100px;
    cursor: pointer;
    height: 55px;
    opacity: 0;
    position: fixed;
    right: 20px;
    text-align: center;
    transition: opacity 0.5s ease-in-out;
    width: 55px;
    z-index: 1000;
    background: var(--gradient-button);
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 24px;
}

.up_button:hover {
    opacity: 1 !important;
}

/* Fix for current menu item styling */
.header__nav ul a.currentMenuItem {
    color: var(--color-heading);
    font-weight: 600;
}

/* Responsive Design for App Page */
@media (max-width: 768px) {
    .hero.app-page .hero__image img {
        max-width: 300px;
    }

    .hero.app-page .hero__title h1 {
        font-size: 2.2rem;
    }

    .app-download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .app-btn {
        min-width: 250px;
    }

    .feature-card {
        padding: 2rem;
    }

    .requirement-card {
        padding: 2rem;
    }

    .up_button {
        bottom: 100px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .module-title h2 {
        font-size: 2.2rem;
    }

    .hero.app-page .hero__title h1 {
        font-size: 2rem;
        line-height: 2.5rem;
    }

    .hero.app-page .hero__text {
        font-size: 1.3rem;
        line-height: 2rem;
    }
}