/* Virtual Hug Space - Beautiful, Warm Styling */

:root {
    --primary-color: #ff6b9d;
    --secondary-color: #c44569;
    --accent-color: #f8b5d3;
    --warm-pink: #ffe0e9;
    --soft-lavender: #e8d5ff;
    --light-blue: #d4f1f4;
    --ivory: #fefefe;
    --warm-gray: #f5f5f5;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --shadow-soft: 0 4px 20px rgba(255, 107, 157, 0.15);
    --shadow-medium: 0 8px 30px rgba(255, 107, 157, 0.25);
    --border-radius: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Main Container */
.vhs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--warm-pink) 0%, var(--soft-lavender) 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Floating Hearts Background */
.vhs-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 107, 157, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(196, 69, 105, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(248, 181, 211, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Header */
.vhs-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
}

.vhs-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(255, 107, 157, 0.3);
}

.vhs-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    font-weight: 300;
}

/* Main Hug Area */
.vhs-main-area {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .vhs-main-area {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Hug Request Panel */
.vhs-panel {
    background: var(--ivory);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-soft);
    border: 2px solid rgba(255, 107, 157, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.vhs-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.vhs-panel:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.vhs-panel-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
    text-align: center;
}

/* Intensity Levels */
.vhs-intensity-levels {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.vhs-intensity-btn {
    padding: 15px 20px;
    border: 2px solid var(--accent-color);
    border-radius: 15px;
    background: var(--ivory);
    color: var(--text-dark);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.vhs-intensity-btn:hover {
    background: var(--accent-color);
    color: white;
    transform: scale(1.05);
}

.vhs-intensity-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
}

.vhs-intensity-btn.extreme {
    background: linear-gradient(45deg, #ff4757, #ff3838);
    color: white;
    border-color: #ff4757;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Mood Selector */
.vhs-mood-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.vhs-mood-btn {
    padding: 10px 15px;
    border: 2px solid var(--accent-color);
    border-radius: 25px;
    background: var(--ivory);
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.vhs-mood-btn:hover {
    background: var(--accent-color);
    color: white;
    transform: scale(1.1);
}

.vhs-mood-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Hug Style Selector */
.vhs-hug-styles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 25px;
}

.vhs-hug-style-btn {
    padding: 12px;
    border: 2px solid var(--accent-color);
    border-radius: 12px;
    background: var(--ivory);
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    font-size: 0.9rem;
}

.vhs-hug-style-btn:hover {
    background: var(--accent-color);
    color: white;
    transform: scale(1.05);
}

.vhs-hug-style-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Form Elements */
.vhs-form-group {
    margin-bottom: 20px;
}

.vhs-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.vhs-input, .vhs-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--accent-color);
    border-radius: 12px;
    background: var(--ivory);
    color: var(--text-dark);
    font-size: 1rem;
    transition: var(--transition);
}

.vhs-input:focus, .vhs-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

.vhs-textarea {
    resize: vertical;
    min-height: 80px;
}

/* Buttons */
.vhs-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    display: inline-block;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.vhs-btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: var(--shadow-soft);
}

.vhs-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.vhs-btn-secondary {
    background: var(--accent-color);
    color: var(--text-dark);
}

.vhs-btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.vhs-btn-danger {
    background: linear-gradient(45deg, #ff4757, #ff3838);
    color: white;
}

.vhs-btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 71, 87, 0.4);
}

/* Hug Counter */
.vhs-counter {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius);
    color: white;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.vhs-counter::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.vhs-counter-number {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.vhs-counter-label {
    font-size: 1.2rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.vhs-milestone {
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 20px;
    margin-top: 15px;
    position: relative;
    z-index: 1;
}

/* Hug History */
.vhs-history {
    background: var(--ivory);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 30px;
}

.vhs-history-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--accent-color);
    transition: var(--transition);
}

.vhs-history-item:hover {
    background: var(--warm-pink);
    border-radius: 15px;
}

.vhs-history-item:last-child {
    border-bottom: none;
}

.vhs-history-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-color);
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.vhs-history-content {
    flex: 1;
}

.vhs-history-sender {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.vhs-history-message {
    color: var(--text-light);
    font-size: 0.9rem;
}

.vhs-history-time {
    color: var(--text-light);
    font-size: 0.8rem;
    margin-top: 5px;
}

.vhs-history-intensity {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-left: 10px;
}

.vhs-intensity-normal { background: var(--accent-color); color: white; }
.vhs-intensity-missing { background: #ffa726; color: white; }
.vhs-intensity-urgent { background: #ff7043; color: white; }
.vhs-intensity-extreme { background: #ff4757; color: white; }

/* Live Hug Animation */
.vhs-live-hug {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.vhs-live-hug-content {
    text-align: center;
    color: white;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from { transform: scale(0.5); }
    to { transform: scale(1); }
}

.vhs-live-avatars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.vhs-live-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    animation: bounce 1s infinite;
}

.vhs-live-avatar:nth-child(2) {
    animation-delay: 0.5s;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

/* Notifications */
.vhs-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--ivory);
    border-radius: 15px;
    padding: 20px;
    box-shadow: var(--shadow-medium);
    border-left: 4px solid var(--primary-color);
    z-index: 1000;
    animation: slideInRight 0.5s ease-out;
    max-width: 300px;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.vhs-notification.success {
    border-left-color: #2ecc71;
}

.vhs-notification.error {
    border-left-color: #e74c3c;
}

.vhs-notification.warning {
    border-left-color: #f39c12;
}

/* Stormy Day Mode */
.vhs-stormy-mode {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    color: white;
}

.vhs-stormy-mode::before {
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(52, 152, 219, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(41, 128, 185, 0.2) 0%, transparent 50%);
}

.vhs-stormy-mode .vhs-panel {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .vhs-title {
        font-size: 2rem;
    }
    
    .vhs-main-area {
        grid-template-columns: 1fr;
    }
    
    .vhs-intensity-levels {
        grid-template-columns: 1fr;
    }
    
    .vhs-hug-styles {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .vhs-counter-number {
        font-size: 3rem;
    }
    
    .vhs-live-avatar {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
}

/* Loading Animation */
.vhs-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--accent-color);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Heartbeat Animation */
.vhs-heartbeat {
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.3); }
    28% { transform: scale(1); }
    42% { transform: scale(1.3); }
    70% { transform: scale(1); }
}

/* Floating Hearts */
.vhs-floating-heart {
    position: absolute;
    color: var(--primary-color);
    font-size: 1.5rem;
    animation: float 6s ease-in-out infinite;
    opacity: 0.7;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Custom Scrollbar */
.vhs-container::-webkit-scrollbar {
    width: 8px;
}

.vhs-container::-webkit-scrollbar-track {
    background: var(--warm-pink);
}

.vhs-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.vhs-container::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
} 