/* ========================================
   COUPLE GAMES - Romantic UI/UX
   Deep Reds, Velvets, and Glassmorphism
   ======================================== */

:root {
    --couple-bg: #1a050f;
    --couple-red: #e11d48;
    --couple-dark-red: #9f1239;
    --couple-pink: #fecdd3;
    --couple-gold: #ffd700;
}

body.couple-theme {
    margin: 0;
    padding: 0;
    background-color: var(--couple-bg);
    background-image: radial-gradient(circle at 50% 0%, #4c0519 0%, #1a050f 70%);
    color: #fff;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

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

.heart-particle {
    position: absolute;
    color: rgba(225, 29, 72, 0.2);
    font-size: 20px;
    animation: floatHeart 15s linear infinite;
    bottom: -50px;
}

@keyframes floatHeart {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-120vh) rotate(360deg) scale(1.5);
        opacity: 0;
    }
}

/* Layout */
.couple-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 500px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Header */
.couple-header {
    text-align: center;
    margin-bottom: 2rem;
}

.back-link {
    display: inline-block;
    color: var(--couple-pink);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.back-link:hover {
    opacity: 1;
}

.romantic-title {
    font-family: 'Dancing Script', cursive;
    font-size: 4rem;
    margin: 0;
    background: linear-gradient(135deg, #ff719a, #e11d48);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 10px rgba(225, 29, 72, 0.4));
}

.romantic-subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--couple-pink);
    font-style: italic;
    margin-top: 0.5rem;
    opacity: 0.9;
}

/* Glass Main Panel */
.panel-glass {
    background: rgba(40, 5, 15, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(225, 29, 72, 0.3);
    border-radius: 20px;
    padding: 2.5rem;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(225, 29, 72, 0.1);
    text-align: center;
}

.panel-glass h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-top: 0;
    color: #fff;
    font-weight: 700;
}

.panel-glass p {
    color: #a1a1aa;
    margin-bottom: 2rem;
}

/* Inputs */
.input-group {
    margin-bottom: 1.5rem;
}

/* --- Permission Notice --- */
.permission-notice {
    background: rgba(225, 29, 72, 0.15);
    border: 1px solid rgba(225, 29, 72, 0.3);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    text-align: left;
    backdrop-filter: blur(5px);
}

.permission-notice .icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.permission-notice p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

.permission-notice strong {
    color: var(--couple-red);
    display: block;
    margin-bottom: 0.2rem;
}

.input-group input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(225, 29, 72, 0.4);
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.input-group input:focus {
    outline: none;
    border-color: var(--couple-red);
    box-shadow: 0 0 15px rgba(225, 29, 72, 0.3);
    background: rgba(0, 0, 0, 0.5);
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* --- Privacy/Panic Button (Phase 6) --- */
.panic-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    opacity: 0.6;
}

.panic-btn:hover {
    opacity: 1;
    background: rgba(225, 29, 72, 0.8);
    border-color: #ff0033;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(225, 29, 72, 0.6);
}

/* Buttons */
.btn-romantic {
    width: 100%;
    background: linear-gradient(135deg, var(--couple-red), var(--couple-dark-red));
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(225, 29, 72, 0.3);
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.btn-romantic:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(225, 29, 72, 0.5);
}

.btn-dark {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.btn-dark:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Divider */
.divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.divider span {
    position: relative;
    z-index: 2;
    background: #28050f;
    /* Match panel approx */
    padding: 0 1rem;
    color: #616161;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 10px;
}

/* Utilities */
.hidden-section {
    display: none !important;
}

.active-section {
    display: block;
}

.highlight-pin {
    color: var(--couple-gold);
    font-family: monospace;
    letter-spacing: 0.2rem;
    font-size: 2.2rem;
    display: block;
    margin: 1rem 0;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem;
    border-radius: 10px;
}

.heart-spinner {
    font-size: 3rem;
    animation: heartbeat 1.5s ease-in-out infinite;
    margin-bottom: 1rem;
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }

    14% {
        transform: scale(1.3);
    }

    28% {
        transform: scale(1);
    }

    42% {
        transform: scale(1.3);
    }

    70% {
        transform: scale(1);
    }
}

/* Feature tags */
.couple-features {
    margin-top: 2rem;
}

.feature-tags {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.feature-tags span {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(225, 29, 72, 0.3);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--couple-pink);
    backdrop-filter: blur(5px);
}

/* Share Box */
.share-box {
    display: flex;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.share-box input {
    flex: 1;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(225, 29, 72, 0.3);
    color: #fff;
    padding: 0.8rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
}

.share-box .btn-dark {
    width: auto;
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    margin: 0;
}

/* Dashboard Msg & Names Display */
.couple-names-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    border: 1px solid rgba(225, 29, 72, 0.2);
}

.partner-badge {
    background: linear-gradient(135deg, var(--couple-red), var(--couple-dark-red));
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 5px 15px rgba(225, 29, 72, 0.4);
    min-width: 80px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.heart-connector {
    font-size: 1.5rem;
    animation: heartbeat 1.5s infinite;
}

.status-msg {
    color: var(--couple-gold) !important;
    font-weight: bold;
    font-size: 1.1rem;
    margin: 1.5rem 0 !important;
}

/* Settings UI (Pre-Game) */
.setting-group {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(225, 29, 72, 0.2);
    padding: 1rem;
    border-radius: 15px;
    margin-bottom: 1rem;
    text-align: left;
}

.setting-group label {
    display: block;
    color: var(--couple-pink);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.couple-select {
    width: 100%;
    background: rgba(40, 5, 15, 0.8);
    color: white;
    border: 1px solid var(--couple-red);
    padding: 0.8rem;
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    cursor: pointer;
}

.category-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cat-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.8rem;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s;
    color: white !important;
    font-weight: normal !important;
    margin-bottom: 0 !important;
}

.cat-radio:hover {
    background: rgba(225, 29, 72, 0.2);
}

.cat-radio input[type="radio"] {
    accent-color: var(--couple-gold);
    transform: scale(1.2);
}

/* Custom Toasts */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
}

.romantic-toast {
    background: rgba(40, 5, 15, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--couple-red);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(225, 29, 72, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s;
}

.romantic-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-icon {
    font-size: 1.5rem;
}

/* Detailed Features Section (SEO) */
.couple-features-detailed {
    margin-top: 4rem;
    padding: 2rem 1rem;
    text-align: center;
    border-top: 1px solid rgba(225, 29, 72, 0.2);
    width: 100%;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--couple-pink);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem auto;
    line-height: 1.5;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-box {
    background: rgba(20, 0, 10, 0.6);
    border: 1px solid rgba(225, 29, 72, 0.15);
    padding: 2rem;
    border-radius: 20px;
    text-align: left;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(225, 29, 72, 0.2);
    border-color: rgba(225, 29, 72, 0.4);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    background: linear-gradient(135deg, var(--couple-red), var(--couple-dark-red));
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(225, 29, 72, 0.3);
}

.feature-box h3 {
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-box p {
    color: #a1a1aa;
    font-size: 0.95rem;
    line-height: 1.6;
}

.feature-box strong {
    color: var(--couple-pink);
}

/* --- Trust Pages & Footer (Phase 9) --- */
.couple-footer {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
    border-top: 1px solid rgba(225, 29, 72, 0.2);
    width: 100%;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.footer-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-links a {
    color: var(--couple-pink);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--couple-gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.footer-links .dot {
    color: rgba(255, 255, 255, 0.3);
}

.footer-copyright {
    color: #888;
    font-size: 0.9rem;
    margin: 0;
}

/* Trust Pages Specific Layout */
.trust-page .couple-header {
    margin-bottom: 2rem;
}

.trust-content {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    text-align: left;
    padding: 3rem;
}

.trust-section {
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 2rem;
}

.trust-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.trust-section h2 {
    color: var(--couple-pink);
    font-size: 1.6rem;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.trust-section p {
    color: #ddd;
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.trust-section ul {
    color: #ddd;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

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

.trust-section strong {
    color: #fff;
    font-weight: 700;
}

/* Trust Badge */
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid rgba(46, 204, 113, 0.4);
    color: #2ecc71;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: bold;
    margin-top: 1rem;
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.1);
}

/* --- SEO Content Section --- */
.couple-seo-content {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.seo-article {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    font-size: 1.05rem;
}

.seo-article h3 {
    color: #fff;
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.seo-article p {
    margin-bottom: 1rem;
}

.seo-article strong {
    color: var(--couple-red);
}

/* --- FAQ Section --- */
.couple-faq-section {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 1.5rem 2rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.faq-item {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(225, 29, 72, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item[open] {
    border-color: rgba(225, 29, 72, 0.5);
    background: rgba(225, 29, 72, 0.08);
}

.faq-item summary {
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    color: #fff;
    font-size: 1.05rem;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--couple-red);
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item p {
    padding: 0 1.5rem 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    font-size: 0.95rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 600px) {
    .romantic-title {
        font-size: 3rem;
    }

    .panel-glass {
        padding: 1.5rem;
    }
}