/* Cannes 2025 Tracker - WordPress Theme Compatible Stylesheet */
/* All styles scoped to .cannes-tracker-container to prevent theme conflicts */

.cannes-tracker-container * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.cannes-tracker-container {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.cannes-tracker-container .tracker-inner {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.cannes-tracker-container header {
    background: white;
    color: rgb(15, 23, 42);
    padding: 40px;
    border-bottom: 1px solid #e2e8f0;
    text-align: center;
}

.cannes-tracker-container header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.cannes-tracker-container header p {
    font-size: 1.1rem;
    opacity: 0.8;
}

.cannes-tracker-container .stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 30px 40px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.cannes-tracker-container .stat-card {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}

.cannes-tracker-container .stat-card .number {
    font-size: 2.5rem;
    font-weight: bold;
    color: rgb(15, 23, 42);
}

.cannes-tracker-container .stat-card .label {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 5px;
}

.cannes-tracker-container .controls {
    padding: 20px 40px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.cannes-tracker-container .controls input {
    width: 100%;
    padding: 12px 20px;
    font-size: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: 'Outfit', sans-serif;
}

.cannes-tracker-container .controls input:focus {
    border-color: rgb(15, 23, 42);
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.1);
}

.cannes-tracker-container .section {
    padding: 30px 40px;
}

.cannes-tracker-container .section h2 {
    font-size: 1.8rem;
    color: rgb(15, 23, 42);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgb(15, 23, 42);
}

.cannes-tracker-container .films-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.cannes-tracker-container .film-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.cannes-tracker-container .film-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.cannes-tracker-container .film-card.watched {
    border-color: #22c55e;
    background: #f0fdf4;
}

.cannes-tracker-container .film-poster {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-fit: cover;
    background: #cbd5e1;
}

.cannes-tracker-container .film-info {
    padding: 15px;
}

.cannes-tracker-container .film-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgb(15, 23, 42);
    margin-bottom: 8px;
}

.cannes-tracker-container .film-meta {
    font-size: 0.85rem;
    color: rgb(100, 116, 139);
    margin-bottom: 5px;
}

.cannes-tracker-container .badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.cannes-tracker-container .badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.75rem;
    border-radius: 20px;
    font-weight: 600;
}

.cannes-tracker-container .badge-watched {
    background: #28a745;
    color: white;
}

.cannes-tracker-container .badge-available {
    background: #17a2b8;
    color: white;
}

.cannes-tracker-container .badge-upcoming {
    background: #ffc107;
    color: #212529;
}

.cannes-tracker-container .badge-released {
    background: #6c757d;
    color: white;
}

.cannes-tracker-container footer {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    color: #6c757d;
    font-size: 0.9rem;
}

.cannes-tracker-container .hidden {
    display: none !important;
}

/* Table styles */
.cannes-tracker-container .films-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.cannes-tracker-container .films-table thead {
    background: rgb(15, 23, 42) !important;
    color: white;
}

.cannes-tracker-container .films-table th {
    background-color: rgb(15, 23, 42) !important;
    color: white !important;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    user-select: none;
}

.cannes-tracker-container .films-table th:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cannes-tracker-container .films-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.9rem;
    color: rgb(51, 65, 85);
}

.cannes-tracker-container .films-table tbody tr:hover {
    background: #f8f9fa;
}

.cannes-tracker-container .films-table tbody tr.watched {
    background: #f0fdf4;
}

.cannes-tracker-container .films-table a {
    color: rgb(15, 23, 42);
    text-decoration: none;
    font-weight: 500;
}

.cannes-tracker-container .films-table a:hover {
    text-decoration: underline;
}

.cannes-tracker-container .table-badge {
    display: inline-block;
    padding: 3px 8px;
    font-size: 0.75rem;
    border-radius: 12px;
    font-weight: 600;
}

.cannes-tracker-container .table-badge.watched {
    background: #28a745;
    color: white;
}

.cannes-tracker-container .table-badge.released {
    background: #6c757d;
    color: white;
}

.cannes-tracker-container .table-badge.upcoming {
    background: #ffc107;
    color: #212529;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cannes-tracker-container header {
        padding: 30px 20px;
    }

    .cannes-tracker-container header h1 {
        font-size: 1.8rem;
    }

    .cannes-tracker-container header p {
        font-size: 1rem;
    }

    .cannes-tracker-container .section {
        padding: 20px 15px;
    }

    .cannes-tracker-container .section h2 {
        font-size: 1.4rem;
    }

    .cannes-tracker-container .controls {
        padding: 15px;
    }

    .cannes-tracker-container .stats {
        padding: 20px 15px;
        gap: 15px;
        grid-template-columns: repeat(2, 1fr);
    }

    .cannes-tracker-container .stat-card .number {
        font-size: 2rem;
    }

    .cannes-tracker-container .films-grid {
        grid-template-columns: 1fr;
    }

    /* Table mobile optimization - horizontal scroll */
    .cannes-tracker-container .films-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 15px 0;
    }

    .cannes-tracker-container .films-table thead,
    .cannes-tracker-container .films-table tbody,
    .cannes-tracker-container .films-table tr {
        display: table;
        width: 100%;
        table-layout: fixed;
    }

    .cannes-tracker-container .films-table th,
    .cannes-tracker-container .films-table td {
        padding: 10px 8px;
        font-size: 0.85rem;
    }

    /* Minimum column widths for readability */
    .cannes-tracker-container .films-table th:nth-child(1),
    .cannes-tracker-container .films-table td:nth-child(1) {
        min-width: 180px;
        /* Film Title */
    }

    .cannes-tracker-container .films-table th:nth-child(2),
    .cannes-tracker-container .films-table td:nth-child(2) {
        min-width: 110px;
        /* Release Date */
    }

    .cannes-tracker-container .films-table th:nth-child(3),
    .cannes-tracker-container .films-table td:nth-child(3) {
        min-width: 120px;
        /* Country / Platform */
    }

    .cannes-tracker-container .films-table th:nth-child(4),
    .cannes-tracker-container .films-table td:nth-child(4) {
        min-width: 90px;
        /* Type */
    }

    .cannes-tracker-container .films-table th:nth-child(5),
    .cannes-tracker-container .films-table td:nth-child(5) {
        min-width: 140px;
        /* Letterboxd */
    }

    /* Touch-friendly tap targets */
    .cannes-tracker-container .films-table a {
        padding: 8px 4px;
        display: inline-block;
    }

    .cannes-tracker-container footer {
        padding: 20px 15px;
        font-size: 0.85rem;
    }
}

/* Extra small devices (phones in portrait, less than 576px) */
@media (max-width: 576px) {
    .cannes-tracker-container header h1 {
        font-size: 1.5rem;
    }

    .cannes-tracker-container header p {
        font-size: 0.9rem;
    }

    .cannes-tracker-container .stats {
        grid-template-columns: 1fr;
    }

    .cannes-tracker-container .stat-card {
        padding: 15px;
    }

    .cannes-tracker-container .stat-card .number {
        font-size: 1.8rem;
    }

    .cannes-tracker-container .section h2 {
        font-size: 1.2rem;
    }

    .cannes-tracker-container .films-table th,
    .cannes-tracker-container .films-table td {
        padding: 8px 6px;
        font-size: 0.8rem;
    }

    /* Adjust minimum widths for very small screens */
    .cannes-tracker-container .films-table th:nth-child(1),
    .cannes-tracker-container .films-table td:nth-child(1) {
        min-width: 160px;
    }

    .cannes-tracker-container .films-table th:nth-child(2),
    .cannes-tracker-container .films-table td:nth-child(2) {
        min-width: 100px;
    }

    .cannes-tracker-container .films-table th:nth-child(3),
    .cannes-tracker-container .films-table td:nth-child(3) {
        min-width: 110px;
    }

    .cannes-tracker-container .films-table th:nth-child(4),
    .cannes-tracker-container .films-table td:nth-child(4) {
        min-width: 80px;
    }

    .cannes-tracker-container .films-table th:nth-child(5),
    .cannes-tracker-container .films-table td:nth-child(5) {
        min-width: 120px;
    }
}

/* Landscape orientation optimization */
@media (max-width: 896px) and (orientation: landscape) {
    .cannes-tracker-container header {
        padding: 20px;
    }

    .cannes-tracker-container .stats {
        padding: 15px;
        grid-template-columns: repeat(4, 1fr);
    }

    .cannes-tracker-container .stat-card {
        padding: 12px;
    }

    .cannes-tracker-container .stat-card .number {
        font-size: 1.5rem;
    }

    .cannes-tracker-container .stat-card .label {
        font-size: 0.8rem;
    }
}