/* 145 Alive - Public Theme */
:root {
    --red: #dc3545;
    --black: #1a1a1a;
    --dark: #2d2d2d;
    --light: #f5f5f5;
    --white: #ffffff;
    --border: #ddd;
    --text-muted: #6c757d;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--light);
    color: var(--black);
    line-height: 1.6;
}

/* Navbar */
.navbar {
    background: linear-gradient(135deg, var(--black) 0%, var(--dark) 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand img {
    height: 50px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.navbar-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: 0.3s;
}

.navbar-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.navbar-start,
.navbar-end {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    border-radius: 4px;
}

.nav-link:hover {
    background: rgba(255,255,255,0.1);
    color: var(--red);
}

.nav-link i {
    font-size: 0.9rem;
}

.btn-register {
    background: var(--red);
    font-weight: 600;
}

.btn-register:hover {
    background: #c82333;
    color: var(--white) !important;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    content: " ▼";
    font-size: 0.7rem;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    min-width: 200px;
    margin-top: 0.5rem;
    padding: 0.5rem 0;
}

.dropdown-menu.active {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    color: var(--black);
    text-decoration: none;
    transition: background 0.3s;
}

.dropdown-item:hover {
    background: var(--light);
}

.dropdown-item i {
    color: var(--red);
    width: 20px;
}

/* Main Layout */
main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.layout-3col {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 250px 1fr 250px;
    gap: 2rem;
}

.main-content {
    min-width: 0;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 90px;
    align-self: start;
}

.sidebar .card {
    margin-bottom: 0;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--black);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
}

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

.sidebar-item i {
    color: var(--red);
    font-size: 1.1rem;
}

.video-item {
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem;
}

.video-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.video-title {
    font-size: 0.9rem;
    line-height: 1.4;
    text-align: left;
}

.sponsors {
    text-align: center;
    padding: 1rem !important;
}

.sponsor-item {
    display: block;
    margin-bottom: 1.5rem;
}

.sponsor-item:last-child {
    margin-bottom: 0;
}

.sponsor-item img {
    max-width: 100%;
    height: auto;
    max-height: 120px;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.card-header {
    background: linear-gradient(135deg, var(--dark) 0%, var(--black) 100%);
    color: var(--white);
    padding: 1rem 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-header i {
    color: var(--red);
}

.card-body {
    padding: 1.5rem;
}

/* Breadcrumbs */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1.5rem;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

.breadcrumb-item {
    font-size: 0.9rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    padding: 0 0.5rem;
    color: var(--text-muted);
}

.breadcrumb-item a {
    color: var(--red);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--text-muted);
}

/* Event Cards */
.event-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    transition: all 0.3s;
}

.event-card:hover {
    border-color: var(--red);
    box-shadow: 0 2px 12px rgba(220, 53, 69, 0.1);
}

.event-info {
    flex: 1;
}

.event-title {
    font-size: 1.5rem;
    margin: 0 0 1rem 0;
    color: var(--black);
}

.event-title .badge {
    display: inline-block;
    background: #ffc107;
    color: #000;
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.event-meta {
    margin: 0.5rem 0;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-meta i {
    color: var(--red);
    width: 20px;
}

.event-nets {
    margin: 1rem 0 0 0;
    font-size: 1.05rem;
}

.event-nets i {
    color: var(--red);
}

.event-nets strong {
    color: var(--red);
}

.event-actions {
    flex-shrink: 0;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 4rem;
    opacity: 0.3;
    margin-bottom: 1rem;
}

.empty-state p {
    font-size: 1.1rem;
}

/* CTA Card */
.cta-card {
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, var(--white) 100%);
}

.cta-card .card-body {
    padding: 3rem 2rem;
}

.cta-card h2 {
    margin: 0 0 1rem 0;
    color: var(--black);
}

.cta-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.cta-card a:not(.btn) {
    color: var(--red);
    text-decoration: none;
    font-weight: 500;
}

.cta-card a:not(.btn):hover {
    text-decoration: underline;
}

.btn-lg {
    font-size: 1.15rem;
    padding: 0.85rem 2rem;
}

.btn-sm {
    font-size: 0.8rem !important;
    padding: 0.3rem 0.7rem !important;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
}

.table thead {
    background: var(--light);
}

.table th,
.table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.table th {
    font-weight: 600;
    color: var(--black);
}

.table tbody tr {
    transition: background-color 0.3s;
}

.table tbody tr:hover {
    background: var(--light);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table i {
    color: var(--red);
    margin-right: 0.5rem;
}

/* Badge variants */
.badge {
    display: inline-block;
    padding: 0.35rem 0.65rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-info {
    background: #17a2b8;
    color: var(--white);
}

.badge-danger {
    background: var(--red);
    color: var(--white);
}

.badge-success {
    background: #28a745;
    color: var(--white);
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--black);
}

.form-input {
    width: 100%;
    padding: 0.65rem 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-input.error {
    border-color: var(--red);
}

textarea.form-input {
    font-family: inherit;
    line-height: 1.6;
}

select.form-input {
    cursor: pointer;
    background-color: var(--white);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem;
    appearance: none;
}

.form-error {
    display: block;
    color: var(--red);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}
/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    text-decoration: none;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #e74c3c 0%, var(--red) 100%);
    color: var(--white);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--red) 0%, #c0392b 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--black) 0%, var(--dark) 100%);
    color: var(--white);
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
}

footer p {
    margin: 0.5rem 0;
}

footer a {
    color: var(--white);
    text-decoration: none;
}

footer a:hover {
    color: var(--red);
}

footer .highlight {
    color: var(--red);
    font-weight: bold;
}

footer .footer-small {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Utilities */
.highlight { color: var(--red); }
.text-muted { color: var(--text-muted); }

/* Responsive */
@media (max-width: 1024px) {
    .layout-3col {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .navbar-toggle {
        display: flex;
    }
    
    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dark);
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
    }
    
    .navbar-menu.active {
        display: flex;
    }
    
    .navbar-start,
    .navbar-end {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-link {
        width: 100%;
        justify-content: center;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        background: rgba(255,255,255,0.1);
    }
    
    .dropdown-item {
        color: var(--white);
    }
    
    .container,
    .layout-3col {
        padding: 0 1rem;
    }
}
