/*
Download App Page Styles
Template: page-downloadapp.php
Uses global variables from style.css
*/

.downloadapp-content {
    background-color: var(--body-bg);
    color: var(--text-body);
    min-height: calc(100vh - 76px);
    margin-top: 0;
}

.downloadapp-content > *:first-child {
    margin-top: 0;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Content Cards */
.content-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    padding: 30px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.content-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.content-card:last-child {
    margin-bottom: 0;
}

/* Disable content-card style for info-box-desc and second-box-desc on desktop */
.info-box-desc.content-card,
.second-box-desc.content-card {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin-bottom: 0;
}

.info-box-desc.content-card:hover,
.second-box-desc.content-card:hover {
    box-shadow: none;
    transform: none;
}

/* App Download Header */
.app-download-header {
    width: 100%;
    min-height: calc(100vh - 76px);
    position: relative;
    background: transparent;
}

/* Mockups Container in Hero */
.downloadapp-mockups {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 50px;
    flex-wrap: wrap;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.mockup-img {
    max-width: 280px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    background: transparent;
    transition: transform 0.5s ease, scale 0.5s ease;
    display: block;
    transform-style: preserve-3d;
}

/* Left image (first) - further back */
.downloadapp-mockups .mockup-img:nth-child(1) {
    transform: scale(0.85) translateZ(-50px) rotateY(5deg);
    opacity: 0.9;
    filter: blur(1px);
}

/* Middle image (second) - closer, larger */
.downloadapp-mockups .mockup-img:nth-child(2) {
    transform: scale(1.05) translateZ(30px);
    z-index: 2;
    background: transparent !important;
    background-color: transparent !important;
}

/* Right image (third) - further back */
.downloadapp-mockups .mockup-img:nth-child(3) {
    transform: scale(0.85) translateZ(-50px) rotateY(-5deg);
    opacity: 0.9;
    filter: blur(1px);
}

.mockup-img:hover {
    transform: translateY(-5px) scale(1.05) !important;
    opacity: 1 !important;
    filter: blur(0) !important;
    z-index: 10 !important;
}

/* Top Section */
.p-top {
    z-index: 3;
    position: relative;
    padding-top: 76px;
}

.item-box {
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    align-items: center;
}

.item-box h1 {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--text-primary);
    width: 70%;
    justify-content: center;
    display: flex;
    margin: 0 auto;
}

.item-box h2 {
    font-size: 1.6em;
    color: var(--accent-primary);
    width: 70%;
    justify-content: center;
    display: flex;
    margin: 0 auto;
}

.item-box p {
    text-align: center;
    font-size: 1em;
    color: var(--text-secondary);
    width: 70%;
    justify-content: center;
    display: flex;
    margin: 0 auto;
}

.download-buttom {
    margin-block: 10px;
    padding: 8px 16px;
    border-radius: 12px;
    text-decoration: none !important;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    border: 1px solid transparent;
    background: var(--accent-primary);
    color: #FFFFFF;
    border-color: var(--accent-primary);
}

.download-buttom:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(61, 114, 254, 0.3);
}

/* Download Links Section */
.link-download {
    color: var(--accent-primary);
}

.link-download > div {
    max-width: 800px;
    display: flex;
    flex-direction: row;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 auto;
}


.group-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--accent-primary);
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1em;
    width: 28%;
    min-width: 0;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px var(--shadow-color);
    padding: 12px 16px;
    white-space: nowrap;
    flex: 1 1 auto;
}

.group-download:hover {
    background: rgba(33, 51, 100, 0.1);
    color: var(--accent-primary);
    border-color: rgba(33, 51, 100, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(33, 51, 100, 0.15);
    text-decoration: none;
}

.group-download img,
.group-download svg {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.group-download span {
    white-space: nowrap;
}

.app-img {
    width: 30px;
    height: 30px;
}

.download-app {
    padding: 8px 16px;
    border-radius: 12px;
    text-decoration: none !important;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(33, 51, 100, 0.2);
    gap: 0;
}

.download-app:hover {
    background: rgba(33, 51, 100, 0.1);
    color: var(--text-primary);
    border-color: rgba(33, 51, 100, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(33, 51, 100, 0.15);
}

/* Dark theme styles for download-app button */
[data-theme="dark"] .download-app {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .download-app:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}

/* Dark theme styles for group-download buttons */
[data-theme="dark"] .group-download:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-primary);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

/* Auto dark theme support */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .download-app {
        color: var(--text-primary);
        border-color: rgba(255, 255, 255, 0.2);
    }
    
    :root:not([data-theme]) .download-app:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.3);
        color: var(--text-primary);
        box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
    }
    
    :root:not([data-theme]) .group-download:hover {
        background: rgba(255, 255, 255, 0.1);
        color: var(--accent-primary);
        border-color: rgba(255, 255, 255, 0.3);
        box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
        text-decoration: none;
    }
}

.margin-top {
    margin-top: 3rem;
}

/* Info Box */
.info-box {
    height: auto;
    margin-top: 3rem;
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
    flex-direction: row;
    gap: 20px;
    align-items: center;
}

.info-box-img {
    border-radius: 8px;
    flex: 0 1 50%;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
}

.info-box-img img {
    max-width: 280px;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.info-box-desc {
    flex: 0 1 50%;
    display: flex;
    color: var(--text-body);
    font-size: 1em;
    margin-top: 0;
    flex-direction: column;
    text-align: justify;
}

.info-box-desc h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-top: 0;
    color: var(--accent-primary);
    justify-content: flex-start;
    font-size: 1.4em;
    font-weight: 600;
}

.info-box-desc p {
    text-align: justify;
    line-height: 1.6;
    font-size: 1em;
    color: var(--text-body);
}

.parent-p p {
    margin: 0;
}


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

/* Standard section spacing - ensures consistent 3rem spacing between sections */
.parent-button-down {
    margin-top: 5rem;
}

.video-container {
    margin-top: 0;
    margin-bottom: 0;
}

.faq-section {
    margin-top: 3rem;
}

/* Second Box */
.second-box {
    height: auto;
    display: flex;
    flex-direction: row;
    margin-top: 3rem;
    margin-bottom: 0;
}

.second-box-img {
    flex: 0 1 50%;
    align-items: center;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
}

.second-box-img img {
    width: 80%;
    height: 90%;
    border-radius: 8px;
}

.second-box-desc {
    flex: 0 1 50%;
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    text-align: justify;
}

.second-box-desc h1 {
    color: var(--accent-primary);
}

.second-box-desc p {
    color: var(--text-body);
    font-size: 1em;
    text-align: justify;
    line-height: 1.6;
}

.button-Dow-App {
    margin-top: 1.5rem;
    display: inline-block;
}

.font-small-app {
    font-size: 1.1em;
}

/* Video iframe */
iframe {
    border-radius: 8px;
    border: 0;
    margin-block: 0;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .app-download-header {
        min-height: auto;
    }
    
    .p-top {
        padding-top: calc(76px + 20px);
    }
    
    .downloadapp-mockups {
        gap: 20px;
        margin-top: 30px;
    }
    
    .mockup-img {
        max-width: 200px;
    }
    
    /* Hide first and third images, show only middle image on mobile */
    .downloadapp-mockups .mockup-img:nth-child(1),
    .downloadapp-mockups .mockup-img:nth-child(3) {
        display: none;
    }
    
    .downloadapp-mockups .mockup-img:nth-child(2) {
        display: block;
        transform: scale(1) translateZ(0);
    }
    
    .info-box-img img {
        max-width: 200px;
    }

    .position-relative {
        overflow: hidden;
        width: 100%;
    }

    .button-Dow-App {
        display: flex;
        align-self: center;
    }

    .link-download > div {
        flex-direction: column;
        width: 100%;
    }

    .group-download {
        width: 100% !important;
        flex: none !important;
        min-width: 100%;
        margin-bottom: 1rem;
    }

    .download-buttom {
        margin-bottom: 0.3rem;
    }

    .item-box h1 {
        font-size: 1.4em;
        text-align: center;
        width: 100%;
        margin-top: 0;
    }

    .item-box h2 {
        font-size: 1.5rem;
        width: 100%;
    }

    .item-box p {
        font-weight: 700;
        width: 100%;
    }

    .item-box > * {
        margin-bottom: 0.5rem;
    }

    .mobile-show {
        display: none;
    }

    .font-small-app {
        margin-bottom: 1rem;
    }

    .margin-top {
        margin-top: 0 !important;
    }

    .second-box-desc,
    .info-box-desc {
        flex: 0 1 100%;
    }
    
    .info-box {
        margin-block: 0;
        margin-inline: 0;
        margin-block-end: 2rem;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        flex-direction: column;
    }

    .info-box-desc.content-card {
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        box-shadow: var(--shadow-card);
        padding: 30px;
        padding-top: 10px;
        margin-bottom: 0;
    }

    .info-box-desc.content-card:hover {
        box-shadow: var(--shadow-hover);
        transform: translateY(-2px);
    }

    .info-box-desc p {
        font-size: 0.9rem;
        text-align: justify;
        color: var(--text-body);
    }

    .info-box-desc h3 {
        font-size: 1.1rem;
        color: var(--accent-primary);
        padding-top: 0;
    }

    .second-box {
        margin-inline: 0;
        margin-block-end: 2rem;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        flex-direction: column;
    }

    .second-box-img img {
        width: 80%;
    }

    .second-box-desc.content-card {
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        box-shadow: var(--shadow-card);
        padding: 30px;
        margin-bottom: 0;
    }

    .second-box-desc.content-card:hover {
        box-shadow: var(--shadow-hover);
        transform: translateY(-2px);
    }

    .second-box-desc p {
        font-size: 0.9rem;
        text-align: justify;
        color: var(--text-body);
    }

    .second-box-desc ul li {
        color: var(--text-body);
        overflow: auto;
        font-size: 0.9rem;
    }
}


/* Print Styles */
@media print {
    .mockup-img {
        max-width: 150px;
    }

    .mobile-show {
        display: none;
    }
}
