/* ============================================================
   HORÓSCOPO CHINO — STYLES
   Professional, responsive, mystical Chinese theme
   ============================================================ */

/* CSS Variables */
:root {
    --hc-primary: #c41e3a;
    --hc-primary-dark: #8b0000;
    --hc-secondary: #d4af37;
    --hc-gold: #ffd700;
    --hc-gold-soft: #f0d890;
    --hc-bg-dark: #1a0a0a;
    --hc-bg-card: rgba(30, 15, 15, 0.95);
    --hc-text: #f5e6d3;
    --hc-text-muted: #b8a89a;
    --hc-border: rgba(212, 175, 55, 0.3);
    --hc-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    --hc-shadow-glow: 0 0 30px rgba(196, 30, 58, 0.3);
    --hc-radius: 16px;
    --hc-radius-sm: 8px;
    --hc-font-display: 'Cinzel', serif;
    --hc-font-body: 'Lato', sans-serif;
    --hc-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--hc-font-body);
    background: linear-gradient(135deg, #0d0d0d 0%, #1a0505 50%, #0d0d0d 100%);
    color: var(--hc-text);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container */
.hc-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    position: relative;
}

/* Background Decorations */
.hc-bg-decor {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.hc-yinyang {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, transparent 30%, rgba(196, 30, 58, 0.05) 70%);
    opacity: 0.3;
    animation: rotate 60s linear infinite;
}

.hc-yinyang::before {
    content: '☯';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 200px;
    color: var(--hc-secondary);
    opacity: 0.15;
}

@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.hc-lantern {
    position: absolute;
    width: 30px;
    height: 50px;
    opacity: 0.1;
}

.hc-lantern::before {
    content: '🏮';
    font-size: 50px;
}

.hc-lantern-left {
    top: 10%;
    left: 5%;
    animation: sway 4s ease-in-out infinite;
}

.hc-lantern-right {
    top: 20%;
    right: 5%;
    animation: sway 4s ease-in-out infinite reverse;
}

@keyframes sway {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

/* Header */
.hc-header {
    text-align: center;
    padding: 40px 0 30px;
    position: relative;
    z-index: 1;
}

.hc-icon-wrapper {
    margin-bottom: 15px;
}

.hc-main-icon {
    font-size: 4rem;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.5));
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hc-title {
    font-family: var(--hc-font-display);
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 700;
    color: var(--hc-secondary);
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.hc-subtitle {
    font-size: 1rem;
    color: var(--hc-text-muted);
    font-weight: 300;
    max-width: 350px;
    margin: 0 auto;
}

/* Steps */
.hc-step {
    display: none;
    position: relative;
    z-index: 1;
}

.hc-step.active {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

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

/* Form Card */
.hc-form-card {
    background: var(--hc-bg-card);
    border: 1px solid var(--hc-border);
    border-radius: var(--hc-radius);
    padding: 30px;
    box-shadow: var(--hc-shadow);
    backdrop-filter: blur(10px);
}

.hc-form-inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Labels */
.hc-label {
    font-family: var(--hc-font-display);
    font-size: 1.1rem;
    color: var(--hc-secondary);
    font-weight: 600;
    letter-spacing: 1px;
}

.hc-label-small {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--hc-text-muted);
}

/* Date Input */
.hc-date-input {
    width: 100%;
    padding: 15px 20px;
    font-size: 1.1rem;
    font-family: var(--hc-font-body);
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--hc-border);
    border-radius: var(--hc-radius-sm);
    color: var(--hc-text);
    transition: var(--hc-transition);
    cursor: pointer;
}

.hc-date-input:hover {
    border-color: var(--hc-secondary);
    background: rgba(255, 255, 255, 0.08);
}

.hc-date-input:focus {
    outline: none;
    border-color: var(--hc-primary);
    box-shadow: 0 0 20px rgba(196, 30, 58, 0.3);
}

.hc-date-input::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.hc-date-input::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* Hint */
.hc-hint {
    font-size: 0.85rem;
    color: var(--hc-text-muted);
    text-align: center;
    margin: 0;
}

/* Buttons */
.hc-btn-primary,
.hc-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    font-family: var(--hc-font-display);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: var(--hc-radius-sm);
    cursor: pointer;
    transition: var(--hc-transition);
    border: none;
}

.hc-btn-primary {
    background: linear-gradient(135deg, var(--hc-primary) 0%, var(--hc-primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.4);
}

.hc-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(196, 30, 58, 0.5);
}

.hc-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.hc-btn-secondary {
    background: transparent;
    color: var(--hc-secondary);
    border: 2px solid var(--hc-secondary);
}

.hc-btn-secondary:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
}

.btn-icon {
    font-size: 1.2rem;
}

/* Result Card */
.hc-result-card {
    background: var(--hc-bg-card);
    border: 1px solid var(--hc-border);
    border-radius: var(--hc-radius);
    padding: 30px;
    box-shadow: var(--hc-shadow), var(--hc-shadow-glow);
    backdrop-filter: blur(10px);
    animation: resultAppear 0.6s ease-out;
}

@keyframes resultAppear {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animal Section */
.hc-animal-section {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--hc-border);
    margin-bottom: 25px;
}

.hc-animal-emoji {
    font-size: 5rem;
    line-height: 1;
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.4));
    animation: pulse 2s ease-in-out infinite;
}

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

.hc-animal-info {
    flex: 1;
}

.hc-animal-name {
    font-family: var(--hc-font-display);
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    color: var(--hc-secondary);
    margin: 8px 0 0;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

/* Element Section */
.hc-element-section {
    text-align: center;
    margin-bottom: 25px;
}

.hc-element-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0.05) 100%);
    padding: 12px 25px;
    border-radius: 50px;
    border: 1px solid var(--hc-secondary);
}

.hc-element-emoji {
    font-size: 1.5rem;
}

.hc-element-name {
    font-family: var(--hc-font-display);
    font-size: 1.2rem;
    color: var(--hc-secondary);
    font-weight: 600;
}

/* Traits Section */
.hc-traits-section {
    margin-bottom: 25px;
}

.hc-traits-title {
    font-family: var(--hc-font-display);
    font-size: 1rem;
    color: var(--hc-secondary);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.hc-traits-text {
    color: var(--hc-text);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Compatibility Section */
.hc-compat-section {
    margin-bottom: 30px;
}

.hc-compat-title {
    font-family: var(--hc-font-display);
    font-size: 1rem;
    color: var(--hc-secondary);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.hc-compat-animals {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.hc-compat-animal {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 15px;
    border-radius: 50px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    font-size: 0.9rem;
    transition: var(--hc-transition);
}

.hc-compat-animal:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--hc-secondary);
}

/* Modal */
.hc-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.hc-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.hc-modal {
    background: var(--hc-bg-card);
    border: 1px solid var(--hc-border);
    border-radius: var(--hc-radius);
    padding: 30px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.hc-modal-overlay.active .hc-modal {
    transform: scale(1);
}

.hc-modal-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
}

.hc-modal-title {
    font-family: var(--hc-font-display);
    font-size: 1.3rem;
    color: var(--hc-secondary);
    margin-bottom: 10px;
}

.hc-modal-msg {
    color: var(--hc-text);
    font-size: 0.95rem;
    margin-bottom: 25px;
    line-height: 1.6;
}

.hc-modal-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 480px) {
    .hc-container {
        padding: 15px;
    }

    .hc-header {
        padding: 30px 0 20px;
    }

    .hc-main-icon {
        font-size: 3rem;
    }

    .hc-title {
        font-size: 1.5rem;
    }

    .hc-subtitle {
        font-size: 0.9rem;
    }

    .hc-form-card {
        padding: 20px;
    }

    .hc-date-input {
        padding: 12px 15px;
        font-size: 1rem;
    }

    .hc-btn-primary,
    .hc-btn-secondary {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    .hc-animal-section {
        flex-direction: column;
        text-align: center;
    }

    .hc-animal-emoji {
        font-size: 4rem;
    }

    .hc-animal-name {
        font-size: 1.8rem;
    }

    .hc-modal {
        padding: 25px;
    }

    .hc-modal-btns {
        flex-direction: column;
    }

    .hc-modal-btns button {
        width: 100%;
    }
}

/* Dark mode scroll */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--hc-bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--hc-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--hc-primary-dark);
}