/* ========================================
   RoboCup India 2026 - Custom Styles
   ======================================== */

/* TODO: Customize colors, fonts, and spacing as per your branding requirements */

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
}

/* ========================================
   General Styles
   ======================================== */

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

html, body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

body {
    background-color: #fff;
}

/* ========================================
   Typography
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #2c3e50;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.8;
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* ========================================
   Navigation
   ======================================== */

.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    padding: 0;
}

.navbar-logo {
    width: 138px;
    height: 56px;
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.navbar-nav .nav-link {
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--primary-color) !important;
}

/* ========================================
   Hero Section
   ======================================== */

.hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0b4960 0%, #12314b 100%);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-section > div {
    position: relative;
    z-index: 2;
}

.hero-copy {
    padding: 2rem;
    border-left: 5px solid #f9c74f;
    background: rgba(4, 24, 38, 0.78);
    border-radius: 0 8px 8px 0;
}

.hero-copy h1,
.hero-copy p {
    color: #fff;
}

.hero-copy .lead {
    color: #f9f2d0;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section .lead {
    font-size: 1.3rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-poster {
    display: block;
    max-height: 78vh;
    margin: 0 auto;
    object-fit: contain;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.category-visual {
    display: block;
    width: 100%;
    aspect-ratio: 900 / 620;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(16, 37, 55, 0.18);
}

/* ========================================
   Page Header
   ======================================== */

.page-header {
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.page-header > div {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-header .lead {
    color: #f0f0f0;
}

/* ========================================
   Cards & Components
   ======================================== */

.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.card-header {
    border-bottom: none;
    border-radius: 8px 8px 0 0 !important;
    font-weight: 600;
}

.category-card {
    border-left: 4px solid var(--primary-color);
}

.category-card .card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
}

/* ========================================
   Buttons
   ======================================== */

.btn {
    border-radius: 6px;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-lg {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
}

.btn-outline-light:hover {
    background-color: #fff;
    color: var(--primary-color);
}

/* ========================================
   Alerts
   ======================================== */

.alert {
    border: none;
    border-radius: 8px;
    border-left: 4px solid;
}

.alert-success {
    border-left-color: var(--success-color);
    background-color: #f0f8f4;
}

.alert-danger {
    border-left-color: var(--danger-color);
    background-color: #fcf2f1;
}

.alert-info {
    border-left-color: var(--info-color);
    background-color: #f0f7fc;
}

.alert-warning {
    border-left-color: var(--warning-color);
    background-color: #fffbf0;
}

/* ========================================
   Tables
   ======================================== */

.table {
    border-collapse: collapse;
}

.table thead {
    background-color: var(--dark-color);
    color: #fff;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(102, 126, 234, 0.05);
}

.table tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.3s ease;
}

.table tbody tr:hover {
    background-color: rgba(102, 126, 234, 0.1);
}

/* ========================================
   Forms
   ======================================== */

.form-control,
.form-select {
    border-radius: 6px;
    border: 1px solid #ddd;
    padding: 0.7rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

/* ========================================
   Sections
   ======================================== */

section {
    padding: 60px 0;
}

section.py-5 {
    padding-top: 60px;
    padding-bottom: 60px;
}

section.bg-light {
    background-color: var(--light-color);
}

/* ========================================
   Footer
   ======================================== */

footer {
    background-color: var(--dark-color);
    color: #fff;
    margin-top: 60px;
}

footer h5 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1rem;
}

footer a {
    color: #adb5bd;
}

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

footer ul li {
    margin-bottom: 0.5rem;
}

footer ul li a {
    transition: all 0.3s ease;
}

footer ul li a:hover {
    padding-left: 5px;
}

footer .text-white-50 {
    color: #adb5bd !important;
}

footer hr {
    border-color: #495057;
}

/* ========================================
   Accordion
   ======================================== */

.accordion-button {
    font-weight: 600;
    color: #333;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23667eea'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* ========================================
   Badges
   ======================================== */

.badge {
    border-radius: 20px;
    padding: 0.4rem 0.8rem;
    font-weight: 600;
}

/* ========================================
   Spacing Utilities
   ======================================== */

.mb-0 {
    margin-bottom: 0;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 3rem;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    section {
        padding: 40px 0;
    }

    .container {
        padding: 0 15px;
    }

    .navbar-brand {
        padding: 0;
    }

    .navbar-logo {
        width: 112px;
        height: 46px;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.95rem;
    }

    .btn-lg {
        padding: 0.6rem 1.5rem;
    }

    .card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 1.1rem;
    }

    .hero-poster {
        max-height: none;
        margin-top: 1.5rem;
    }

    .hero-copy {
        padding: 1.25rem;
    }

    .page-header {
        padding: 2rem 0 !important;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

    .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }

    .table {
        font-size: 0.9rem;
    }

    .navbar-nav .nav-link {
        margin: 0.3rem 0;
    }
}

/* ========================================
   Animations
   ======================================== */

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease;
}

/* ========================================
   Video Cards
   ======================================== */

.video-card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.video-thumbnail {
    background-color: #000;
    transition: all 0.3s ease;
}

.video-thumbnail:hover {
    opacity: 0.9;
}

.play-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    padding: 20px;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.play-button:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.2);
    color: #fff !important;
}

.video-thumbnail img {
    transition: all 0.3s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

/* ========================================
   Custom Utilities
   ======================================== */

.border-left-primary {
    border-left: 4px solid var(--primary-color) !important;
}

.border-left-success {
    border-left: 4px solid var(--success-color) !important;
}

.border-left-danger {
    border-left: 4px solid var(--danger-color) !important;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
}

.text-primary-emphasis {
    color: var(--primary-color);
}

.min-vh-100 {
    min-height: 100vh;
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
    .navbar,
    footer,
    .btn,
    .page-header {
        display: none;
    }

    body {
        background-color: #fff;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
