/* App Detail Page Styles - Apple App Store Inspired */

.app-detail {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

/* Tab Navigation */
.app-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0;
}

.app-tab {
    padding: 1rem 2rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    bottom: -2px;
}

.app-tab:hover {
    color: var(--primary-color);
    background-color: var(--bg-light);
}

.app-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* App Header */
.app-header {
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
}

.app-header-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.app-icon {
    width: 140px;
    height: 140px;
    border-radius: 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.app-info {
    flex: 1;
}

.app-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.app-tagline {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-style: italic;
}

.app-category {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.app-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.app-store-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 122, 255, 0.4);
}

.coming-soon-banner {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    margin-top: 0.5rem;
}

/* Screenshots */
.app-screenshots {
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
}

.app-screenshots h2,
.app-description h2,
.app-faq h2,
.app-manual h2,
.app-privacy h2,
.app-support h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 300px));
    gap: 1.5rem;
}

.screenshot-item {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.screenshot-item:hover {
    transform: scale(1.05);
}

.screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Description */
.app-description {
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
}

#appDescription {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-light);
    max-width: 800px;
}

/* FAQ */
.app-faq {
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
}

.faq-list {
    max-width: 800px;
}

.faq-item {
    background-color: var(--bg-light);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(0, 122, 255, 0.05);
}

.faq-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.25rem 1.5rem;
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

/* Manual */
.app-manual {
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
}

.manual-description {
    max-width: 800px;
    margin-bottom: 2rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.manual-pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.manual-pdf-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 122, 255, 0.4);
}

.manual-pdf-btn svg {
    flex-shrink: 0;
}

.manual-section {
    margin-bottom: 2rem;
}

.manual-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.manual-section p,
.manual-section ul {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-light);
}

.manual-section ul {
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

.manual-section li {
    margin-bottom: 0.5rem;
}

/* Privacy Policy */
.app-privacy {
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
}

.privacy-content {
    max-width: 800px;
}

.privacy-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* Support */
.app-support {
    padding: 3rem 0;
}

.support-content {
    max-width: 600px;
}

.support-content p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.support-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.support-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background-color: var(--bg-light);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.support-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.support-btn svg {
    flex-shrink: 0;
}

/* Back Button */
.back-to-home {
    margin: 3rem 0;
    text-align: center;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--bg-light);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background-color: var(--border-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .app-header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

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

    .app-name {
        font-size: 2rem;
    }

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

    .app-screenshots h2,
    .app-description h2,
    .app-faq h2,
    .app-manual h2,
    .app-privacy h2,
    .app-support h2 {
        font-size: 1.75rem;
    }
}
