/* ===== Detail Page Styles ===== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --bg: #06060b;
    --bg-raised: #0c0c14;
    --border: rgba(255, 255, 255, 0.06);
    --border-lit: rgba(255, 255, 255, 0.12);
    --text: #f0f0f5;
    --text-2: #8888a0;
    --text-3: #55556a;
    --accent-1: #6c5ce7;
    --accent-2: #a855f7;
    --accent-3: #06b6d4;
    --pink: #ec4899;
    --green: #34d399;
    --grad: linear-gradient(135deg, #6c5ce7, #a855f7, #06b6d4);
    --grad-border: linear-gradient(135deg, rgba(108,92,231,0.5), rgba(168,85,247,0.5), rgba(6,182,212,0.3));
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    padding: 40px 20px;
    -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(108,92,231,0.35); color: #fff; }

/* --- Background --- */
.ambient-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.ambient-bg .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(130px);
    opacity: 0.10;
    animation: orbDrift 22s ease-in-out infinite;
}

.ambient-bg .orb:nth-child(1) {
    width: 500px; height: 500px;
    background: var(--accent-1);
    top: -200px; left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.ambient-bg .orb:nth-child(2) {
    width: 400px; height: 400px;
    background: var(--accent-2);
    bottom: -150px; right: -80px;
    animation-delay: -7s;
}

.ambient-bg .orb:nth-child(3) {
    width: 350px; height: 350px;
    background: var(--accent-3);
    bottom: 30%; left: -100px;
    animation-delay: -14s;
}

@keyframes orbDrift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -40px) scale(1.04); }
    66% { transform: translate(-20px, 25px) scale(0.96); }
}

/* --- Card --- */
.detail-card {
    position: relative;
    z-index: 1;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 52px 44px;
    max-width: 460px;
    width: 100%;
    text-align: center;
    animation: cardSlideUp 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
}

/* Animated gradient border */
.detail-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 28px;
    padding: 1px;
    background: var(--grad-border);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.7;
}

/* Inner subtle glow */
.detail-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(108,92,231,0.08), transparent 70%);
    pointer-events: none;
    z-index: -1;
}

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

/* --- App Icon --- */
.app-icon {
    width: 92px;
    height: 92px;
    border-radius: 22px;
    object-fit: cover;
    margin-bottom: 24px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    border: 2px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}

.detail-card:hover .app-icon {
    transform: scale(1.06) translateY(-2px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 30px rgba(108,92,231,0.1);
}

/* --- App Title --- */
.detail-card h1 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.7px;
    margin-bottom: 8px;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.detail-card .app-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 32px;
    padding: 5px 14px;
    border-radius: 100px;
}

.detail-card .app-subtitle.game {
    color: var(--accent-2);
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.15);
}

.detail-card .app-subtitle.app,
.detail-card .app-subtitle.ai-app,
.detail-card .app-subtitle.utility {
    color: var(--accent-3);
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.15);
}

/* --- Store Buttons --- */
.store-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}

.store-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px 24px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
}

.store-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.store-btn.google-play {
    background: rgba(52, 211, 153, 0.08);
    border: 1px solid rgba(52, 211, 153, 0.15);
    color: var(--green);
}

.store-btn.google-play::before {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.06), transparent);
}

.store-btn.google-play:hover {
    background: rgba(52, 211, 153, 0.14);
    border-color: rgba(52, 211, 153, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(52, 211, 153, 0.12);
}

.store-btn.google-play:hover::before { opacity: 1; }

.store-btn.app-store {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-lit);
    color: var(--text);
}

.store-btn.app-store::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent);
}

.store-btn.app-store:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.store-btn.app-store:hover::before { opacity: 1; }

.store-btn i { font-size: 1.25rem; }

/* --- Divider --- */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-lit), transparent);
    margin: 4px 0 24px;
}

/* --- Action Buttons --- */
.action-buttons {
    display: flex;
    gap: 10px;
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.84rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: pointer;
    border: none;
}

.action-btn.home-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: var(--text-2);
}

.action-btn.home-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-lit);
    color: var(--text);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.action-btn.contact-btn {
    background: rgba(108, 92, 231, 0.08);
    border: 1px solid rgba(108, 92, 231, 0.15);
    color: var(--accent-2);
}

.action-btn.contact-btn:hover {
    background: rgba(108, 92, 231, 0.14);
    border-color: rgba(168, 85, 247, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(108, 92, 231, 0.1);
}

.action-btn i { font-size: 0.92rem; }

/* --- Footer --- */
.detail-footer {
    position: relative;
    z-index: 1;
    margin-top: 40px;
    text-align: center;
    animation: cardSlideUp 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    animation-delay: 0.1s;
    animation-fill-mode: both;
}

.detail-footer p {
    color: var(--text-3);
    font-size: 0.75rem;
    letter-spacing: 0.3px;
}

.detail-footer a {
    color: var(--text-3);
    text-decoration: none;
    transition: color 0.3s;
}

.detail-footer a:hover {
    color: var(--accent-2);
}

/* --- Responsive --- */
@media (max-width: 520px) {
    .detail-card {
        padding: 40px 24px;
        border-radius: 22px;
    }

    .detail-card h1 {
        font-size: 1.5rem;
    }

    .app-icon {
        width: 78px;
        height: 78px;
        border-radius: 18px;
    }

    .action-buttons {
        flex-direction: column;
    }
}
