/* App Landing Page Styles */
.app-landing-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: var(--card-primary);
    border-radius: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 14px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.breadcrumbs a {
    color: var(--accent-blue);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* App Header Section */
.app-header {
    margin-bottom: 25px;
}

.app-hero {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.app-landing-logo {
    width: 100px;
    height: 100px;
    border-radius: 25px;
    object-fit: cover;
    border: 2px solid var(--accent-blue);
}

.app-basic-info {
    flex: 1;
    min-width: 200px;
}

.app-basic-info h1 {
    color: var(--secondary);
    margin: 0 0 10px;
    font-size: 24px;
}

/* Meta Information Grid */
.app-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    background: rgba(0,0,0,0.03);
    padding: 8px 10px;
    border-radius: 8px;
}

.meta-item i {
    color: var(--accent-blue);
}

/* Download Button - Centered and Full Width */
.download-action {
    margin: 30px 0;
    text-align: center;
}

.download-btn {
    display: block;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    background: var(--accent-blue);
    color: white;
    padding: 15px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
}

.download-btn:hover {
    background: var(--primary-dark);
}

.download-btn i {
    margin-right: 8px;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-primary);
    opacity: 0.8;
}

.trust-item i {
    color: var(--accent-blue);
}

/* Social Sharing */
.social-sharing {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.social-sharing span {
    font-size: 14px;
    color: var(--text-primary);
    opacity: 0.8;
}

.social-sharing a {
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s;
}

.social-sharing a:hover {
    transform: translateY(-3px);
}

.social-sharing a:nth-child(2) {
    background: #3b5998; /* Facebook */
}

.social-sharing a:nth-child(3) {
    background: #1da1f2; /* Twitter */
}

.social-sharing a:nth-child(4) {
    background: #25d366; /* WhatsApp */
}

/* App Description */
.app-description-box {
    margin: 30px 0;
    padding: 20px;
    background: rgba(0,0,0,0.03);
    border-radius: 10px;
}

.app-description-box h2 {
    color: var(--secondary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-description-box h2 i {
    color: var(--accent-blue);
}

/* Screenshots Section */
.screenshots-section {
    margin: 30px 0;
}

.screenshots-section h2 {
    color: var(--secondary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.screenshots-section h2 i {
    color: var(--accent-blue);
}

.screenshots-carousel {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 0;
    scroll-snap-type: x mandatory;
}

.screenshots-carousel img {
    height: 300px;
    scroll-snap-align: start;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Features Section */
.features-section {
    margin: 30px 0;
}

.features-section h2 {
    color: var(--secondary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-section h2 i {
    color: var(--accent-blue);
}

.features-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.features-list li {
    background: rgba(0,0,0,0.03);
    padding: 12px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-list i {
    color: var(--success);
}

/* FAQ Section - Matching Other Sections */
.app-faq-section {
    margin: 40px 0;
}

.app-faq-section h2 {
    color: var(--secondary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-faq-section h2 i {
    color: var(--accent-blue); /* Matching icon color */
}

.app-faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    background: var(--card-primary);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.1);
}

.app-faq-question {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: rgba(0,0,0,0.03);
}

.app-faq-question h3 {
    margin: 0;
    font-size: 16px;
    color: var(--secondary); /* Matching text color */
}

.app-faq-toggle {
    font-size: 20px;
    color: var(--accent-blue); /* Matching icon color */
    transition: transform 0.3s ease;
}

.app-faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.4s ease, padding 0.3s ease;
    line-height: 1.6;
    color: var(--text-primary); /* Matching text color */
}

/* Active State */
.app-faq-item.active .app-faq-answer {
    max-height: 500px;
    padding: 0 20px 20px;
    background: rgba(0,0,0,0.03); /* Matching background */
    border-top: 1px solid rgba(0,0,0,0.05);
}

.app-faq-item.active .app-faq-toggle {
    transform: rotate(45deg);
    color: var(--accent-blue); /* Ensure color stays consistent */
}

/* Related Apps Section */
.related-apps-section {
    margin-top: 40px;
}

.related-apps-section h2 {
    color: var(--secondary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.related-apps-section h2 i {
    color: var(--accent-blue);
}

.related-apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.related-app-card {
    background: var(--card-primary);
    border-radius: 10px;
    padding: 15px;
    text-decoration: none;
    transition: transform 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: relative;
}

.related-app-card:hover {
    transform: translateY(-3px);
}

.related-app-card img {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 10px;
}

.related-app-info h3 {
    color: var(--text-primary);
    margin: 0 0 5px;
    font-size: 15px;
}

.related-app-meta {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: var(--text-primary);
    opacity: 0.8;
}

.related-app-meta i {
    color: var(--accent-blue);
}

.new-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--success);
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: bold;
}

.view-all-link {
    text-align: center;
    margin-top: 15px;
}

.view-all-link a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: bold;
}

.view-all-link a:hover {
    text-decoration: underline;
}

/* Not Found State */
.app-not-found {
    text-align: center;
    padding: 40px 20px;
}

.app-not-found i {
    font-size: 50px;
    color: var(--secondary);
    margin-bottom: 20px;
}

.app-not-found h2 {
    color: var(--secondary);
    margin-bottom: 10px;
}

.return-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: var(--secondary);
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

/* Loading State */
.loading-state {
    display: flex;
    justify-content: center;
    padding: 40px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    border-top-color: var(--accent-blue);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    .app-hero {
        flex-direction: column;
        text-align: center;
    }
    
    .app-meta-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .related-apps-grid {
        grid-template-columns: 1fr;
    }
    
    .download-btn {
        padding: 12px;
        font-size: 16px;
    }
    
    .features-list {
        grid-template-columns: 1fr;
    }
    
    .screenshots-carousel img {
        height: 200px;
    }
}