/* ==========================================================================
   Google Maps Review Landing Page Stylesheet
   Business: Shyam Sarkar Mobile - Photo Framing Studio
   Theme: Premium Dark Glassmorphism with Golden Accents
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & CSS Variables
   -------------------------------------------------------------------------- */
:root {
    /* Color Palette */
    --bg-dark: #0a0c10;
    --bg-card: rgba(18, 22, 31, 0.65);
    --bg-card-border: rgba(255, 255, 255, 0.08);
    --bg-input: rgba(10, 12, 16, 0.75);
    --bg-input-border: rgba(255, 255, 255, 0.12);

    /* Primary Accent (Gold Gradient Spectrum) */
    --gold-primary: #f39c12;
    --gold-hover: #ffb732;
    --gold-glow: rgba(243, 156, 18, 0.35);
    --gold-gradient: linear-gradient(135deg, #f1c40f 0%, #e67e22 100%);
    --gold-border: rgba(243, 156, 18, 0.4);

    /* Text Colors */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-subtle: #64748b;

    /* Status Colors */
    --success: #10b981;
    --success-glow: rgba(16, 185, 129, 0.3);

    /* Layout & Geometry */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 9999px;

    /* Transitions & Shadows */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    --shadow-glass: 0 16px 40px -10px rgba(0, 0, 0, 0.6), inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
    --shadow-gold: 0 8px 25px -5px rgba(243, 156, 18, 0.4);
}

/* --------------------------------------------------------------------------
   2. CSS Reset & Global Layout
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 16px;
    position: relative;
    overflow-x: hidden;
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   3. Ambient Background Glows
   -------------------------------------------------------------------------- */
.bg-blur {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.45;
}

.ambient-glow-1 {
    width: 320px;
    height: 320px;
    background: #e67e22;
    top: -80px;
    left: -80px;
}

.ambient-glow-2 {
    width: 380px;
    height: 380px;
    background: #f1c40f;
    bottom: -100px;
    right: -100px;
}

.ambient-glow-3 {
    width: 250px;
    height: 250px;
    background: #3498db;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.15;
}

/* --------------------------------------------------------------------------
   4. Glassmorphism Card Container
   -------------------------------------------------------------------------- */
.app-container {
    width: 100%;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0 auto;
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glass);
    padding: 24px;
    position: relative;
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   5. Business Header Section
   -------------------------------------------------------------------------- */
.business-brand {
    display: flex;
    align-items: center;
    gap: 18px;
}

.logo-wrapper {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    padding: 3px;
    background: var(--gold-gradient);
    box-shadow: var(--shadow-gold);
    flex-shrink: 0;
}

.business-logo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background-color: #1a1e29;
    display: block;
}

.business-info {
    display: flex;
    flex-direction: column;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gold-primary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.business-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}

.business-subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gold-hover);
    margin-bottom: 4px;
}

.business-location {
    font-size: 0.825rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* --------------------------------------------------------------------------
   6. Review Card & Interactive Star Rating System
   -------------------------------------------------------------------------- */
.section-header {
    text-align: center;
    margin-bottom: 20px;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
}

.section-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.rating-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.star-rating {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: var(--radius-pill);
    border: 1px solid var(--bg-card-border);
}

.star-btn {
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.2);
    transition: transform var(--transition-smooth), color var(--transition-fast), filter var(--transition-fast);
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.star-btn:hover {
    transform: scale(1.25) rotate(-5deg);
}

.star-btn:active {
    transform: scale(0.95);
}

.star-btn.active {
    color: var(--gold-primary);
    filter: drop-shadow(0 0 10px var(--gold-glow));
}

.star-btn.pulse {
    animation: starPulse 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes starPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

.rating-label-badge {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 4px 16px;
    border-radius: var(--radius-pill);
    background: rgba(243, 156, 18, 0.12);
    color: var(--gold-hover);
    border: 1px solid rgba(243, 156, 18, 0.2);
    transition: all var(--transition-fast);
}

/* --------------------------------------------------------------------------
   7. Review Textarea Box & Controls
   -------------------------------------------------------------------------- */
.review-box-container {
    margin-bottom: 24px;
}

.review-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.input-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-regenerate {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--bg-card-border);
    color: var(--gold-hover);
    font-size: 0.775rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition-fast);
}

.btn-regenerate:hover {
    background: rgba(243, 156, 18, 0.15);
    border-color: var(--gold-border);
    transform: translateY(-1px);
}

.btn-regenerate:active {
    transform: translateY(0);
}

.btn-regenerate i.spin {
    animation: spinRotate 0.5s ease-in-out;
}

@keyframes spinRotate {
    100% { transform: rotate(360deg); }
}

.textarea-wrapper {
    position: relative;
}

.custom-textarea {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--bg-input-border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.925rem;
    line-height: 1.6;
    resize: vertical;
    min-height: 130px;
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.custom-textarea:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.15);
}

.custom-textarea::placeholder {
    color: var(--text-subtle);
}

.textarea-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
    padding: 0 4px;
    font-size: 0.75rem;
    color: var(--text-subtle);
}

.edit-hint {
    display: flex;
    align-items: center;
    gap: 4px;
}

.char-counter {
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   8. Action Buttons Group
   -------------------------------------------------------------------------- */
.action-buttons-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.btn {
    width: 100%;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    outline: none;
    transition: all var(--transition-fast);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gold-gradient);
    color: #0d0f14;
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px -4px rgba(243, 156, 18, 0.55);
    filter: brightness(1.05);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    border: 1px solid var(--bg-card-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-secondary:active {
    transform: translateY(0);
}

/* Success state for copied action */
.btn-success {
    background: var(--success) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 25px -5px var(--success-glow) !important;
}

/* --------------------------------------------------------------------------
   9. Instructions Section
   -------------------------------------------------------------------------- */
.instructions-card {
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.instructions-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold-hover);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.instructions-steps {
    padding-left: 20px;
    font-size: 0.825rem;
    color: var(--text-muted);
}

.instructions-steps li {
    margin-bottom: 4px;
}

.instructions-steps li:last-child {
    margin-bottom: 0;
}

.instructions-steps strong {
    color: var(--text-main);
}

/* --------------------------------------------------------------------------
   10. Footer & QR Section
   -------------------------------------------------------------------------- */
.footer-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px 24px;
}

.qr-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.qr-wrapper {
    width: 68px;
    height: 68px;
    background: #ffffff;
    border-radius: var(--radius-sm);
    padding: 6px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qr-info {
    display: flex;
    flex-direction: column;
}

.qr-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.925rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 2px;
}

.qr-desc {
    font-size: 0.775rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.copyright {
    text-align: center;
    font-size: 0.725rem;
    color: var(--text-subtle);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 12px;
}

/* --------------------------------------------------------------------------
   11. Toast Notifications
   -------------------------------------------------------------------------- */
.toast-container {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: rgba(18, 22, 31, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--gold-border);
    color: var(--text-main);
    padding: 12px 22px;
    border-radius: var(--radius-pill);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), var(--shadow-gold);
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: auto;
}

.toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.toast-icon {
    color: var(--gold-primary);
    font-size: 1.1rem;
}

.toast-success .toast-icon {
    color: var(--success);
}

/* --------------------------------------------------------------------------
   12. Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
    body {
        padding: 12px 10px;
    }

    .glass-card {
        padding: 18px 16px;
    }

    .business-brand {
        gap: 12px;
    }

    .logo-wrapper {
        width: 60px;
        height: 60px;
    }

    .business-title {
        font-size: 1.15rem;
    }

    .star-btn {
        font-size: 1.75rem;
    }

    .star-rating {
        gap: 6px;
        padding: 6px 12px;
    }

    .action-buttons-group {
        gap: 10px;
    }

    .btn {
        padding: 12px 16px;
        font-size: 0.925rem;
    }

    .qr-wrapper {
        width: 58px;
        height: 58px;
    }
}