/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand Colors - Based on D'Passions Logo */
    --primary-purple: #B8A8D8;
    --deep-purple: #9B89C5;
    --light-purple: #D4C8E8;
    --accent-purple: #A394CC;
    --white: #FFFFFF;
    --off-white: #FEFEFE;
    --text-dark: #2C2C2C;
    --text-medium: #555555;
    --text-light: #777777;
    --shadow-light: rgba(184, 168, 216, 0.1);
    --shadow-medium: rgba(184, 168, 216, 0.2);
    --shadow-heavy: rgba(184, 168, 216, 0.3);
    
    /* Typography */
    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Inter', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    
    /* Transitions */
    --transition-fast: 0.2s ease-out;
    --transition-medium: 0.3s ease-out;
    --transition-slow: 0.5s ease-out;
}

/* Base Typography */
body {
    font-family: var(--font-secondary);
    background: linear-gradient(135deg, var(--off-white) 0%, var(--light-purple) 100%);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 500px;
    margin: 0 auto;
    padding: var(--spacing-md);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--white);
    box-shadow: 0 0 50px var(--shadow-light);
}

/* Header Styles */
.header {
    text-align: center;
    padding: var(--spacing-lg) 0;
    border-bottom: 1px solid var(--light-purple);
    margin-bottom: var(--spacing-lg);
}

.logo-container {
    display: inline-block;
    margin-bottom: var(--spacing-md);
    padding: 7px 7px 1px;
    background: linear-gradient(45deg, var(--primary-purple), var(--deep-purple));
    border-radius: 50%;
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--white);
    transition: transform var(--transition-medium);
}

.logo:hover {
    transform: scale(1.05);
}

.brand-name {
    font-family: var(--font-primary);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--deep-purple);
    margin-bottom: var(--spacing-xs);
    letter-spacing: -0.5px;
}

.tagline {
    font-size: 0.95rem;
    color: var(--text-medium);
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.welcome-section {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.welcome-title {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--deep-purple);
    margin-bottom: var(--spacing-sm);
}

.welcome-text {
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.7;
    max-width: 400px;
    margin: 0 auto;
}

/* Social Channels */
.social-channels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    flex: 1;
}

.social-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
    background: var(--white);
    border: 2px solid var(--light-purple);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text-dark);
    transition: all var(--transition-medium);
    box-shadow: 0 4px 15px var(--shadow-light);
    position: relative;
    overflow: hidden;
    min-height: 120px;
}

.social-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left var(--transition-slow);
}

.social-button:hover::before {
    left: 100%;
}

.social-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-medium);
    border-color: var(--primary-purple);
}

.social-button:active {
    transform: translateY(0);
}

.icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    /*margin-right: var(--spacing-md);*/
    font-size: 1.5rem;
    color: var(--white);
    flex-shrink: 0;
}

.button-content {
    text-align: center;
    margin-top: var(--spacing-sm);
}

.button-content h3 {
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-dark);
}

.button-content p {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 400;
}


/* Platform-specific styling */
.google-reviews .icon-wrapper {
    background: linear-gradient(45deg, #EA4335, #FBBC05);
}

.instagram .icon-wrapper {
    background: linear-gradient(45deg, #E4405F, #FCCC63, #C13584);
}

.facebook .icon-wrapper {
    background: linear-gradient(45deg, #1877F2, #42A5F5);
}

.xiaohongshu .icon-wrapper {
    background: linear-gradient(45deg, #FF2442, #FF6B6B);
}

.telegram .icon-wrapper {
    background: linear-gradient(45deg, #0088CC, #29B6F6);
}

.shopee .icon-wrapper {
    background: linear-gradient(45deg, #EE4D2D, #FF7337);
}

.tiktok .icon-wrapper {
    background: linear-gradient(45deg, #000000, #FF0050, #00F2EA);
}

/* Center the 7th button (TikTok) across both columns */
.social-button:last-child {
    grid-column: 1 / -1;
    width: calc((100% - var(--spacing-md)) / 2);
    margin: 0 auto;
}

/* Footer */
.footer {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg) 0;
    border-top: 1px solid var(--light-purple);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.company-info {
    font-weight: 600;
    color: var(--deep-purple);
    font-size: 1rem;
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--text-medium);
    font-style: italic;
}

.powered-by {
    margin-top: var(--spacing-sm);
}

.powered-by p {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 300;
}

/* Responsive Design */
@media (max-width: 480px) {
    .container {
        padding: var(--spacing-sm);
        max-width: 100%;
    }
    
    .header {
        padding: var(--spacing-md) 0;
    }
    
    .logo {
        width: 70px;
        height: 70px;
    }
    
    .brand-name {
        font-size: 1.9rem;
    }
    
    .welcome-title {
        font-size: 1.6rem;
    }
    
    .welcome-text {
        font-size: 0.95rem;
    }
    
    .social-button {
        padding: var(--spacing-md);
        min-height: 100px;
    }
    
    .icon-wrapper {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .button-content h3 {
        font-size: 1rem;
    }
    
    .button-content p {
        font-size: 0.8rem;
    }
}

@media (max-width: 360px) {
    .brand-name {
        font-size: 1.7rem;
    }
    
    .welcome-title {
        font-size: 1.4rem;
    }
    
    .social-channels {
        grid-template-columns: 1fr;
    }
    
    .social-button {
        padding: var(--spacing-sm);
        min-height: 90px;
    }
    
    .social-button:last-child {
        grid-column: 1;
        max-width: none;
        margin: 0;
    }
    
    .icon-wrapper {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        margin-right: var(--spacing-sm);
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    .header {
        padding: var(--spacing-sm) 0;
    }
    
    .welcome-section {
        margin-bottom: var(--spacing-md);
    }
    
    .social-channels {
        gap: var(--spacing-sm);
    }
    
    .footer {
        margin-top: var(--spacing-md);
        padding: var(--spacing-sm) 0;
    }
}

/* Loading and interaction states */
.social-button.loading {
    pointer-events: none;
    opacity: 0.7;
}

.social-button.loading::after {
    content: '';
    position: absolute;
    right: 45%;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid var(--light-purple);
    border-top: 2px solid var(--deep-purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

/* Focus states for accessibility */
.social-button:focus {
    outline: 2px solid var(--deep-purple);
    outline-offset: 2px;
}

.social-button:focus:not(:focus-visible) {
    outline: none;
}

/* Print styles */
@media print {
    .container {
        box-shadow: none;
        max-width: 100%;
    }
    
    .social-button:hover {
        transform: none;
        box-shadow: 0 4px 15px var(--shadow-light);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --text-light: #444444;
        --shadow-light: rgba(0, 0, 0, 0.2);
        --shadow-medium: rgba(0, 0, 0, 0.3);
    }
    
    .social-button {
        border-width: 3px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .social-button::before {
        display: none;
    }
}