/* Apps Page - Antigravity Dark Style */

.apps-hero {
    text-align: center;
    padding: 60px 20px 32px;
    background: transparent;
}

.apps-hero h1 {
    font-size: 42px;
    font-weight: 400;
    margin-bottom: 12px;
    color: var(--text-color);
}

.apps-hero .subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 28px;
}

/* Search Bar */
.apps-search-box {
    max-width: 560px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 10px 16px;
    box-shadow: none;
    transition: all 0.2s;
    backdrop-filter: blur(12px);
}

.apps-search-box:focus-within {
    border-color: var(--accent);
    
}

.apps-search-box .search-icon {
    display: flex;
    align-items: center;
    padding: 0 8px 0 4px;
}

.apps-search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 4px 8px;
    background: transparent;
    color: var(--text-color);
    font-family: inherit;
}

.apps-search-box input::placeholder {
    color: var(--text-secondary);
}

.search-clear {
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 16px;
    padding: 4px 8px;
    border-radius: 50%;
    transition: background 0.15s;
}

.search-clear:hover {
    background: rgba(255, 255, 255, 0.06);
}

/* Platform Tabs */
.platform-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    border-bottom: 1px solid var(--border-color);
    max-width: 400px;
    margin: 0 auto;
}

.tab-btn {
    padding: 12px 24px;
    border: none;
    background: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    font-family: inherit;
}

.tab-btn:hover {
    color: var(--accent);
    background: rgba(77, 171, 247, 0.06);
}

.tab-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* Apps Count */
.apps-count {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* Apps Section */
.apps-section {
    padding: 32px 20px 60px;
    background-color: transparent;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 48px;
}

/* App Card */
.app-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.app-card::before {
    display: none;
}

.app-card:hover {
    
    border-color: rgba(77, 171, 247, 0.2);
    background: var(--bg-card-hover);
    transform: none;
}

.app-card.featured {
    border: 2px solid rgba(77, 171, 247, 0.3);
    background: rgba(77, 171, 247, 0.05);
}

.popular-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--g-blue);
    color: white;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Platform Label */
.platform-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.ios-label {
    background: rgba(77, 171, 247, 0.15);
    color: var(--accent);
}

.android-label {
    background: rgba(105, 219, 124, 0.15);
    color: var(--g-green);
}

/* App Icon */
.app-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.app-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.icon-text {
    font-size: 28px;
}

/* App Info */
.app-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 500;
}

.app-description {
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
    font-size: 13px;
}

.app-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.feature-tag {
    background: rgba(77, 171, 247, 0.12);
    color: var(--accent);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    border: none;
}

.android-tag {
    background: rgba(105, 219, 124, 0.12);
    color: var(--g-green);
}

.app-version {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
}

/* App Action Buttons */
.app-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.install-btn {
    padding: 8px 20px;
    background: var(--accent);
    color: #0a0a0a;
    border: none;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.install-btn:hover {
    
}

.android-install {
    background: var(--g-green);
    color: #0a0a0a;
}

.android-install:hover {
    box-shadow: 0 0 20px rgba(105, 219, 124, 0.3);
    background: var(--g-green);
}

.download-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.download-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.no-results h3 {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 8px;
}

.no-results p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Info Section */
.info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 48px;
}

.info-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.info-card h2 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--text-color);
}

/* Info Tabs */
.info-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.info-tab {
    padding: 8px 20px;
    border: none;
    background: none;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    font-family: inherit;
    transition: all 0.2s;
}

.info-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.info-tab-content {
    display: none;
}

.info-tab-content.active {
    display: block;
}

.install-steps {
    list-style: none;
    counter-reset: step-counter;
    margin-bottom: 24px;
}

.install-steps li {
    counter-increment: step-counter;
    position: relative;
    padding-left: 44px;
    margin-bottom: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 14px;
}

.install-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    background: var(--accent);
    color: #0a0a0a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    
}

.install-steps li strong {
    color: var(--text-color);
    display: block;
    margin-bottom: 2px;
}

.android-free-note {
    background: rgba(105, 219, 124, 0.12);
    color: var(--g-green);
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.warning-card {
    border-color: rgba(255, 107, 107, 0.2);
    background: rgba(255, 107, 107, 0.04);
}

.warning-list {
    list-style: none;
    padding: 0;
}

.warning-list li {
    padding: 10px 0;
    padding-left: 28px;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
}

.warning-list li:last-child {
    border-bottom: none;
}

.warning-list li::before {
    content: '⚠️';
    position: absolute;
    left: 0;
    font-size: 14px;
}

/* Active nav link */
.nav-links a.active {
    color: var(--accent);
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .apps-hero h1 {
        font-size: 28px;
    }

    .apps-grid {
        grid-template-columns: 1fr;
    }

    .info-section {
        grid-template-columns: 1fr;
    }

    .app-card {
        padding: 20px;
    }

    .info-card {
        padding: 24px 16px;
    }

    .platform-tabs {
        max-width: 100%;
    }
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.app-card {
    animation: slideInUp 0.4s ease-out;
    animation-fill-mode: both;
}

.app-card:nth-child(1) { animation-delay: 0.05s; }
.app-card:nth-child(2) { animation-delay: 0.1s; }
.app-card:nth-child(3) { animation-delay: 0.15s; }
.app-card:nth-child(4) { animation-delay: 0.2s; }
.app-card:nth-child(5) { animation-delay: 0.25s; }
.app-card:nth-child(6) { animation-delay: 0.3s; }
.app-card:nth-child(7) { animation-delay: 0.35s; }
.app-card:nth-child(8) { animation-delay: 0.4s; }
.app-card:nth-child(9) { animation-delay: 0.45s; }
.app-card:nth-child(10) { animation-delay: 0.5s; }
