/*
 * BengaMeter Premium Stylesheet
 * Concentrated Styles for All Views
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #0C0C0E;
    color: #E2E8F0;
    line-height: 1.6;
    min-height: 100vh;
}

/* ==========================================
   Header Fixo Premium & Navbar
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background-color: rgba(12, 12, 14, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 0, 85, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 1000;
}

.navbar-brand {
    color: white;
    text-decoration: none;
    font-weight: 900;
    letter-spacing: 3px;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand span {
    color: #FF0055;
}

.navbar-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(0, 255, 204, 0.4));
}

.navbar-menu {
    display: flex;
    gap: 24px;
    align-items: center;
}

.navbar-menu a {
    color: #A0AEC0;
    text-decoration: none;
    font-size: 0.95em;
    font-weight: 600;
    transition: color 0.2s;
}

.navbar-menu a:hover {
    color: #FF0055;
}

.navbar-menu a.active {
    color: #00FFCC;
}

.navbar-menu a.highlight-menu {
    color: #0C0C0E;
    background-color: #00FFCC;
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.navbar-menu a.highlight-menu:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.5);
    color: #0C0C0E;
}

/* ==========================================
   Footer Legal
   ========================================== */
.footer {
    text-align: center;
    padding: 40px 20px;
    font-size: 0.9em;
    color: #718096;
    border-top: 1px solid #2D3748;
    background-color: #0C0C0E;
    margin-top: 60px;
}

/* ==========================================
   Landing Page / Home (welcome.blade.php)
   ========================================== */
.hero-logo {
    width: 140px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px rgba(255, 0, 85, 0.5));
    animation: pulseLogo 3s infinite alternate;
}

@keyframes pulseLogo {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 20px rgba(255, 0, 85, 0.4));
    }
    100% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 35px rgba(0, 255, 204, 0.6));
    }
}

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    overflow: hidden;
    background: radial-gradient(circle, #1A1A24 0%, #0C0C0E 80%);
}

.hero-content {
    z-index: 10;
    max-width: 800px;
}

.hero h1 {
    font-size: 4em;
    font-weight: 900;
    letter-spacing: 4px;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 0 30px rgba(255, 0, 85, 0.4);
}

.hero h1 span {
    color: #FF0055;
}

.hero p {
    font-size: 1.3em;
    color: #A0AEC0;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    background-color: #16161A;
    border: 2px solid #FF0055;
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    letter-spacing: 1px;
    box-shadow: 0 0 20px rgba(255, 0, 85, 0.3);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.store-badge i {
    font-size: 1.4em;
    margin-right: 12px;
    color: #00FFCC;
}

.store-badge:hover {
    background-color: #FF0055;
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 0, 85, 0.6);
}

.sub-badge {
    display: block;
    margin-top: 15px;
    font-size: 0.85em;
    color: #718096;
    letter-spacing: 1px;
}

.features {
    padding: 100px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.2em;
    font-weight: 900;
    color: white;
    letter-spacing: 2px;
    margin-bottom: 60px;
}

.section-title span {
    color: #00FFCC;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: #16161A;
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 16px;
    transition: transform 0.2s, border-color 0.2s;
}

.feature-card:hover {
    border-color: #FF0055;
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5em;
    margin-bottom: 20px;
    display: inline-block;
}

.feature-card h3 {
    color: #00FFCC;
    font-size: 1.3em;
    margin-top: 0;
    margin-bottom: 12px;
    font-weight: bold;
}

.feature-card p {
    color: #A0AEC0;
    font-size: 0.95em;
    margin: 0;
    line-height: 1.5;
}

/* ==========================================
   Document & Text Content Pages (termos, privacidade, obd2)
   ========================================== */
.content-container {
    max-width: 800px;
    margin: 100px auto 60px auto;
    padding: 0 20px;
}

.content-container h1 {
    color: #FF0055;
    border-bottom: 2px solid #FF0055;
    padding-bottom: 10px;
    font-weight: 900;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 0, 85, 0.3);
}

.content-container h2 {
    color: #00FFCC;
    margin-top: 30px;
    font-size: 1.4em;
    display: flex;
    align-items: center;
}

.content-container p,
.content-container li {
    color: #A0AEC0;
    font-size: 1.05em;
}

.content-container ol,
.content-container ul {
    padding-left: 20px;
}

.content-container li {
    margin-bottom: 8px;
}

.highlight {
    background-color: rgba(0, 255, 204, 0.05);
    border-left: 4px solid #00FFCC;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

.highlight-red {
    background-color: rgba(255, 0, 85, 0.1);
    border-left: 4px solid #FF0055;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

.tip-box {
    background-color: rgba(255, 215, 0, 0.08);
    border-left: 4px solid #FFD700;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

.btn-buy {
    display: inline-block;
    background-color: #FF0055;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
    margin-top: 10px;
    transition: background 0.2s;
    text-align: center;
    letter-spacing: 1px;
}

.btn-buy:hover {
    background-color: #D60046;
}

/* ==========================================
   Contato & Suporte (contato.blade.php)
   ========================================== */
.main-container {
    max-width: 600px;
    margin: 120px auto 60px auto;
    padding: 0 20px;
}

.main-container h1 {
    color: #FF0055;
    font-weight: 900;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 0, 85, 0.3);
    text-align: center;
    margin-bottom: 10px;
}

.subtitle {
    text-align: center;
    color: #A0AEC0;
    margin-bottom: 40px;
    font-size: 1.1em;
}

.card {
    background-color: #16161A;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #00FFCC;
    font-size: 0.9em;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background-color: #0C0C0E;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #E2E8F0;
    padding: 12px;
    border-radius: 8px;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #FF0055;
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.btn-submit {
    display: block;
    width: 100%;
    background-color: #FF0055;
    color: white;
    padding: 14px;
    border: none;
    font-weight: bold;
    font-size: 1em;
    border-radius: 8px;
    cursor: pointer;
    letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(255, 0, 85, 0.3);
    transition: background 0.2s, transform 0.2s;
}

.btn-submit:hover {
    background-color: #D60046;
    transform: translateY(-1px);
}

.alert-success {
    background-color: rgba(0, 255, 204, 0.1);
    border: 1px solid #00FFCC;
    color: #00FFCC;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 30px;
    font-weight: bold;
    text-align: center;
}

.alert-danger {
    background-color: rgba(255, 0, 85, 0.1);
    border: 1px solid #FF0055;
    color: #FF0055;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9em;
}

.alert-danger ul {
    margin: 0;
    padding-left: 20px;
}

/* ==========================================
   Ranking Global (ranking.blade.php)
   ========================================== */
.container {
    max-width: 800px;
    margin: 100px auto 0 auto;
    padding: 40px 20px;
}

header.ranking-header {
    text-align: center;
    margin-bottom: 40px;
}

header.ranking-header h1 {
    font-size: 36px;
    font-weight: 900;
    letter-spacing: 4px;
    color: #fff;
}

header.ranking-header h1 span {
    color: #FF0055;
}

header.ranking-header p {
    color: #666;
    margin-top: 8px;
    font-size: 14px;
    letter-spacing: 1px;
}

.podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 100px;
}

.podium-item {
    text-align: center;
    padding: 20px 16px;
    border-radius: 16px;
    width: 180px;
}

.podium-item.first {
    background: linear-gradient(180deg, #FFD70022, #FFD70008);
    border: 1px solid #FFD70044;
    padding-bottom: 40px;
}

.podium-item.second {
    background: linear-gradient(180deg, #C0C0C022, #C0C0C008);
    border: 1px solid #C0C0C044;
    padding-bottom: 24px;
}

.podium-item.third {
    background: linear-gradient(180deg, #CD7F3222, #CD7F3208);
    border: 1px solid #CD7F3244;
    padding-bottom: 24px;
}

.podium-foto {
    width: 100%;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 10px;
    background: #1A1A24;
    cursor: pointer;
}

.podium-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.podium-foto .no-foto {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #333;
}

.podium-medal {
    font-size: 28px;
    margin-bottom: 6px;
}

.podium-name {
    font-weight: 800;
    font-size: 15px;
    margin-bottom: 4px;
}

.podium-car {
    color: #888;
    font-size: 12px;
    margin-bottom: 6px;
}

.podium-time {
    color: #00FFCC;
    font-size: 24px;
    font-weight: 900;
    font-style: italic;
}

.rank-card {
    display: flex;
    align-items: center;
    background: #16161A;
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 10px;
    border: 1px solid #ffffff08;
    transition: transform 0.2s, border-color 0.2s;
    gap: 12px;
}

.rank-card:hover {
    border-color: #FF005544;
    transform: translateX(4px);
}

.rank-foto {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #1A1A24;
    cursor: pointer;
}

.rank-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-foto .no-foto {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #333;
}

.rank-pos {
    width: 36px;
    font-weight: 900;
    font-size: 16px;
    color: #555;
    text-align: center;
    flex-shrink: 0;
}

.rank-pos.top3 {
    color: #FFD700;
}

.rank-info {
    flex: 1;
    min-width: 0;
}

.rank-name {
    font-weight: 700;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-car {
    color: #666;
    font-size: 11px;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-time {
    color: #00FFCC;
    font-size: 20px;
    font-weight: 900;
    font-style: italic;
    flex-shrink: 0;
}

.empty {
    text-align: center;
    padding: 80px 0;
    color: #444;
}

.empty h2 {
    font-size: 20px;
    margin-bottom: 8px;
}

.empty p {
    font-size: 14px;
}

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 999;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.modal-overlay.active {
    display: flex;
}

.modal-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
    object-fit: contain;
}
