/* ============================================
   STEAMPUNK THEME — Claro & Clara Turma
   ============================================ */

/* --- Font Smoothing --- */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #0D0B09;
    color: #E8D5B5;
}

/* --- Brass Gradient Text --- */
.text-gradient-brass {
    background: linear-gradient(135deg, #F0E0C8 0%, #C8963E 40%, #8B6914 70%, #D4A84B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Keep legacy class working */
.text-gradient-gold {
    background: linear-gradient(135deg, #F0E0C8 0%, #C8963E 50%, #8B6914 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Metallic Card Surface --- */
.steam-card {
    background: linear-gradient(145deg, #1A1410 0%, #2A2118 50%, #1E1812 100%);
    border: 1px solid #3D2E1E;
    position: relative;
}

.steam-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(200,150,62,0.04) 0%, transparent 40%);
    pointer-events: none;
}

/* --- Riveted Border --- */
.rivet-border {
    position: relative;
    border: 2px solid #3D2E1E;
    box-shadow: inset 0 1px 0 rgba(200,150,62,0.1), 0 4px 20px rgba(0,0,0,0.4);
}

.rivet-border::before,
.rivet-border::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #D4A84B, #6B4E1A);
    box-shadow: 0 1px 2px rgba(0,0,0,0.5);
    z-index: 5;
}
.rivet-border::before { top: 6px; left: 6px; }
.rivet-border::after { top: 6px; right: 6px; }

/* --- Brass Button --- */
.btn-brass {
    background: linear-gradient(135deg, #C8963E 0%, #D4A84B 50%, #8B6914 100%);
    color: #0D0B09;
    font-weight: 700;
    border: 1px solid #D4A84B;
    box-shadow: 0 0 15px rgba(200,150,62,0.3), inset 0 1px 0 rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-brass:hover {
    background: linear-gradient(135deg, #D4A84B 0%, #E8C86A 50%, #C8963E 100%);
    box-shadow: 0 0 25px rgba(200,150,62,0.5), inset 0 1px 0 rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.btn-brass::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-brass:hover::after {
    transform: translateX(100%);
}

/* --- Copper Outline Button --- */
.btn-copper-outline {
    background: transparent;
    color: #D4A84B;
    font-weight: 700;
    border: 2px solid #B87333;
    transition: all 0.3s ease;
}

.btn-copper-outline:hover {
    background: rgba(184,115,51,0.15);
    border-color: #D4A84B;
    box-shadow: 0 0 15px rgba(184,115,51,0.3);
    transform: translateY(-1px);
}

/* --- Decorative Gear (CSS only) --- */
.gear-decor {
    position: absolute;
    border-radius: 50%;
    border: 3px solid #3D2E1E;
    background: radial-gradient(circle, #2A2118 60%, #1A1410 100%);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5), 0 0 8px rgba(200,150,62,0.1);
    animation: gear-spin 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

.gear-decor::before {
    content: '';
    position: absolute;
    inset: 20%;
    border-radius: 50%;
    border: 2px dashed #3D2E1E;
}

.gear-decor::after {
    content: '⚙';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60%;
    color: #5A4530;
    opacity: 0.6;
}

.gear-decor-reverse {
    animation-direction: reverse;
}

.gear-decor-slow {
    animation-duration: 40s;
}

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

/* --- Steam / Smoke Effect --- */
.steam-effect {
    position: absolute;
    width: 60px;
    height: 100px;
    pointer-events: none;
    z-index: 1;
}

.steam-effect::before,
.steam-effect::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200,180,150,0.08) 0%, transparent 70%);
    animation: steam-rise 4s ease-in-out infinite;
}

.steam-effect::before {
    width: 30px;
    height: 30px;
    left: 10px;
    bottom: 0;
    animation-delay: 0s;
}

.steam-effect::after {
    width: 20px;
    height: 20px;
    left: 25px;
    bottom: 10px;
    animation-delay: 1.5s;
}

@keyframes steam-rise {
    0% { opacity: 0; transform: translateY(0) scale(1); }
    30% { opacity: 0.4; }
    70% { opacity: 0.15; }
    100% { opacity: 0; transform: translateY(-80px) scale(2.5); }
}

/* --- Ember Sparks --- */
.sparks-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.spark {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #FF9F1C;
    box-shadow: 0 0 6px #FF6B1A, 0 0 12px rgba(255,107,26,0.4);
    animation: spark-float 3s ease-in infinite;
    opacity: 0;
}

.spark:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 3.2s; }
.spark:nth-child(2) { left: 25%; animation-delay: 0.7s; animation-duration: 2.8s; }
.spark:nth-child(3) { left: 45%; animation-delay: 1.3s; animation-duration: 3.5s; }
.spark:nth-child(4) { left: 65%; animation-delay: 0.4s; animation-duration: 2.6s; }
.spark:nth-child(5) { left: 80%; animation-delay: 1.8s; animation-duration: 3.1s; }
.spark:nth-child(6) { left: 90%; animation-delay: 2.5s; animation-duration: 2.9s; }

@keyframes spark-float {
    0% { opacity: 0; transform: translateY(100%) scale(0.5); }
    20% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-200px) translateX(30px) scale(0); }
}

/* --- Copper Pipe Divider --- */
.pipe-divider {
    position: relative;
    height: 8px;
    background: linear-gradient(180deg, #8B6914 0%, #B87333 40%, #CD7F32 50%, #B87333 60%, #8B6914 100%);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.15);
}

/* --- Gauge / Meter Element --- */
.gauge-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #1A1410, #2A2118);
    border: 1px solid #3D2E1E;
    color: #D4A84B;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    box-shadow: inset 0 1px 0 rgba(200,150,62,0.1);
}

.gauge-badge::before {
    content: '◉';
    font-size: 0.6rem;
    color: #B87333;
}

/* --- Metallic Section Separator (between sections) --- */
.section-separator {
    position: relative;
    height: 4px;
    background: linear-gradient(90deg, transparent, #3D2E1E 20%, #B87333 50%, #3D2E1E 80%, transparent);
}

/* --- Glowing Amber Text --- */
.glow-amber {
    text-shadow: 0 0 10px rgba(200,150,62,0.4), 0 0 30px rgba(200,150,62,0.15);
}

/* --- Plate / Panel Background --- */
.metal-plate {
    background: linear-gradient(160deg, #1E1812 0%, #2A2118 30%, #1A1410 70%, #161210 100%);
    border: 1px solid #3D2E1E;
    box-shadow: inset 0 1px 0 rgba(200,150,62,0.05), 0 8px 32px rgba(0,0,0,0.4);
}

/* --- Scrollbar Steampunk --- */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0D0B09;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #3D2E1E, #B87333, #3D2E1E);
    border-radius: 5px;
    border: 1px solid #2A2118;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #5A4530, #D4A84B, #5A4530);
}

/* --- Selection Color --- */
::selection {
    background: rgba(200,150,62,0.3);
    color: #F0E0C8;
}

/* --- Pulsing Amber Dot (for status indicators) --- */
.pulse-amber {
    animation: pulse-amber 2s ease-in-out infinite;
}

@keyframes pulse-amber {
    0%, 100% { box-shadow: 0 0 0 0 rgba(200,150,62,0.5); }
    50% { box-shadow: 0 0 0 8px rgba(200,150,62,0); }
}

/* --- Input fields steampunk --- */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    background-color: #1A1410 !important;
    border-color: #3D2E1E !important;
    color: #E8D5B5 !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    border-color: #C8963E !important;
    box-shadow: 0 0 0 2px rgba(200,150,62,0.2) !important;
    outline: none !important;
}

input::placeholder,
textarea::placeholder {
    color: #6B5A45 !important;
}
