:root {
    --pv-primary: hsl(199, 75%, 31%);
    --pv-primary-2: hsl(190, 91%, 60%);
    --pv-accent: hsl(171, 84%, 67%);
    --pv-bg: #f4f6fb;
    --pv-card: #ffffff;
    --pv-text: #0f172a;
    --pv-muted: #64748b;
    --pv-border: #e2e8f0;
    --pv-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    --pv-shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
}

body {
    background: var(--pv-bg);
    color: var(--pv-text);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.navbar {
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.pv-hero {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.12), rgba(99, 102, 241, 0.12));
    border: 1px solid var(--pv-border);
    padding: 24px 28px;
    box-shadow: var(--pv-shadow-soft);
}

.pv-card {
    border: 1px solid var(--pv-border);
    border-radius: 18px;
    box-shadow: var(--pv-shadow-soft);
    overflow: hidden;
}

.pv-card-hover {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pv-card-hover:hover {
    transform: translateY(-4px);
    box-shadow: var(--pv-shadow);
}

.pv-section-title {
    font-weight: 600;
    letter-spacing: -0.02em;
}

.pv-muted {
    color: var(--pv-muted);
}

.btn-pv {
    background: #14b8a6;
    border: none;
    color: #fff;
    border-radius: 999px;
    padding: 0.6rem 1.4rem;
    box-shadow: 0 10px 20px rgba(20, 184, 166, 0.25);
}

.btn-pv:hover {
    color: #fff;
    background: #1f2937;
    transform: translateY(-1px);
}

.btn-outline-pv {
    border-radius: 999px;
    border: 1px solid rgba(30, 58, 138, 0.35);
    color: var(--pv-primary);
    background: #fff;
}

.btn-outline-pv:hover {
    background: rgba(30, 58, 138, 0.08);
    color: var(--pv-primary);
}

.table-pv {
    border-collapse: separate;
    border-spacing: 0 10px;
}

.table-pv thead th {
    background: #111827;
    color: #fff;
    font-weight: 500;
    border: none;
    padding: 14px 16px;
}

.table-pv tbody tr {
    background: #fff;
    box-shadow: var(--pv-shadow-soft);
}

.table-pv tbody td {
    border: none;
    padding: 14px 16px;
}

.table-pv tbody tr td:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.table-pv tbody tr td:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.form-control,
.form-select {
    border-radius: 14px;
    border-color: var(--pv-border);
    padding: 0.65rem 0.9rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--pv-primary-2);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.15);
}

.badge-pv {
    background: rgba(30, 58, 138, 0.1);
    color: var(--pv-primary);
    border-radius: 999px;
    padding: 0.4rem 0.8rem;
    font-weight: 500;
}

.pv-divider {
    height: 1px;
    background: var(--pv-border);
    margin: 20px 0;
}

.pv-stat {
    border-radius: 16px;
    background: #fff;
    padding: 16px 18px;
    box-shadow: var(--pv-shadow-soft);
}

.pv-footer {
    background: #0f172a;
    color: #94a3b8;
}

.pagination {
    gap: 6px;
}

.pagination .page-link {
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    font-size: 0.9rem;
    border: 1px solid rgba(30, 58, 138, 0.2);
    color: var(--pv-primary);
    background: #fff;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--pv-primary), var(--pv-accent));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 10px 20px rgba(30, 58, 138, 0.25);
}

.pagination .page-link:hover {
    background: rgba(59, 130, 246, 0.08);
    color: var(--pv-primary);
}

.pagination svg {
    width: 16px;
    height: 16px;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    line-height: 1;
}

.phase-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    transform: none;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.7rem;
    color: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.phase-badge-upload {
    background: rgba(245, 158, 11, 0.5);
}

.phase-badge-voting {
    background: rgba(34, 197, 94, 0.5);
}

.phase-badge-results {
    background: #000000a4;
}

.phase-badge-default {
    background: rgba(100, 116, 139, 0.5);
}

.contest-featured {
    height: 220px;
    object-fit: cover;
}

.pagination .page-item.disabled .page-link {
    background: #f1f5f9;
    color: #94a3b8;
    box-shadow: none;
}

.pv-card .btn.p-0 {
    border: none;
}

.pv-card .btn.p-0:focus {
    box-shadow: none;
}

.py-6 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.pv-card {
    border-radius: 16px;
    border: 1px solid #eee;
    background: #fff;
    transition: .2s;
}

.pv-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .05);
}

.pv-participation-list {
    display: grid;
    gap: 22px;
}

.pv-participation-row {
    display: grid;
    grid-template-columns: 120px minmax(220px, 1fr) minmax(360px, auto);
    gap: 36px;
    align-items: center;
    min-height: 168px;
    padding: 18px 30px;
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--pv-shadow-soft);
}

.pv-contest-thumb-link {
    display: block;
}

.pv-contest-thumb,
.pv-submitted-photo-img {
    display: block;
    width: 100%;
    object-fit: cover;
    background: #e2e8f0;
}

.pv-contest-thumb {
    aspect-ratio: 1 / 1;
    border-radius: 0;
}

.pv-participation-title {
    min-width: 0;
}

.pv-participation-link {
    color: var(--pv-text);
    font-size: 1.34rem;
    font-weight: 750;
    line-height: 1.15;
    text-decoration: none;
}

.pv-participation-link:hover {
    color: var(--pv-primary);
}

.pv-participation-date {
    margin-top: 4px;
    color: #111827;
    font-size: 0.98rem;
    line-height: 1.2;
}

.pv-submitted-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: flex-end;
}

.pv-submitted-photo {
    position: relative;
    width: 120px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #d1d5db;
}

.pv-submitted-photo-img {
    height: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 0;
}

.pv-score-badge {
    position: absolute;
    right: 8px;
    bottom: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    margin: 0;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.82);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1;
    text-shadow: none;
}

.pv-best-photo {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}

.pv-best-photo-image-wrap {
    position: relative;
    overflow: hidden;
    height: 150px;
    background: #e2e8f0;
}

.pv-best-photo-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pv-best-photo-meta {
    min-width: 0;
}

.pv-best-photo-title {
    overflow: hidden;
    color: var(--pv-text);
    font-size: 1.1rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .pv-participation-row {
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 18px;
        padding: 18px;
    }

    .pv-submitted-photos {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
}

@media (max-width: 575.98px) {
    .pv-participation-row {
        grid-template-columns: 1fr;
    }

    .pv-contest-thumb {
        max-height: 180px;
    }

    .pv-submitted-photo {
        width: calc(33.333% - 11px);
        min-width: 86px;
    }

    .pv-best-photo {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .pv-best-photo-image-wrap {
        width: 96px !important;
        height: 96px !important;
    }
}
