/*
   Custom styles for the public Contest List page
   Color Palette:
   Navy: #0f2a4a
   Brand blue: #2f6fed
   Soft blue: #eaf1ff
   Surface: #f4f6fb
   Border: #e7eaf2
   Text-muted: #6b7686
*/

/* Font setup */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

.table-custom {
    font-family: 'Inter', sans-serif;
    border-collapse: separate;
    border-spacing: 0 8px; /* For card-like rows if needed, or just standard */
}

/* Card Style for the main container */
.section .card {
    border-radius: 16px;
    border: 1px solid #e7eaf2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    border-bottom: none;
}

/* Custom Table Row Styles */
.table-custom tbody tr {
    transition: background-color 0.2s ease;
}

.table-custom tbody tr:hover {
    background-color: #f8faff !important;
}

.table-custom td, .table-custom th {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #e7eaf2;
}

.table-custom th {
    color: #6b7686;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e7eaf2;
}

/* Contest Name & Organizer Hierarchy */
.contest-title {
    color: #0f2a4a;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    margin-bottom: 2px;
}
.contest-title a {
    color: #0f2a4a;
    text-decoration: none;
}
.contest-title a:hover {
    color: #2f6fed;
}

.contest-org {
    color: #6b7686;
    font-size: 0.85rem;
    font-weight: 400;
}

/* Thumbnail */
.contest-thumb {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 64px;
    height: 64px;
    object-fit: cover;
}

/* Numbers / Stats Columns */
.stat-number {
    font-weight: 700;
    font-size: 1.1rem;
    color: #0f2a4a;
}

/* Buttons */
.btn-brand {
    background-color: #2f6fed;
    color: #ffffff;
    border-radius: 8px;
    font-weight: 500;
    border: 1px solid #2f6fed;
    transition: all 0.2s;
}
.btn-brand:hover {
    background-color: #0f2a4a;
    border-color: #0f2a4a;
    color: #ffffff;
}

.btn-outline-brand {
    background-color: transparent;
    color: #2f6fed;
    border-radius: 8px;
    font-weight: 500;
    border: 1px solid #e7eaf2;
    transition: all 0.2s;
}
.btn-outline-brand:hover {
    background-color: #eaf1ff;
    color: #2f6fed;
    border-color: #2f6fed;
}

.btn-soft-primary {
    background-color: #eaf1ff;
    color: #2f6fed;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    transition: all 0.2s;
}
.btn-soft-primary:hover {
    background-color: #2f6fed;
    color: #ffffff;
}

/* Date/Time Labels */
.date-block {
    font-size: 0.85rem;
    color: #0f2a4a;
    line-height: 1.4;
}
.date-label {
    color: #6b7686;
    font-weight: 600;
    font-size: 0.75rem;
    margin-right: 4px;
}

/* Progress / Days Badges */
.badge-days {
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
}
.badge-days i {
    font-size: 0.95rem;
}
