/* assets/style.css */

/* ==================== RESET & GRUNDLÄGGANDE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #e2e8f0;
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== HEADER ==================== */
.main-header {
    background: #0f172a;
    border-bottom: 2px solid #334155;
    padding: 1rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo a {
    color: #60a5fa;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: bold;
}

.main-nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.main-nav a {
    color: #cbd5e1;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s;
}

.main-nav a:hover {
    background: #1e293b;
    color: #60a5fa;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #60a5fa;
}

.btn-logout {
    background: #ef4444;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s;
}

.btn-logout:hover {
    background: #dc2626;
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

.main-footer {
    background: #0f172a;
    border-top: 2px solid #334155;
    padding: 1.5rem 0;
    text-align: center;
    color: #94a3b8;
}

/* ==================== BUTTONS ==================== */
.btn-primary {
    background: #3b82f6;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: #64748b;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #475569;
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    background: #3b82f6;
    color: white;
    transition: all 0.3s;
    margin: 0 0.25rem;
}

.btn-small:hover {
    background: #2563eb;
}

.btn-danger {
    background: #ef4444 !important;
}

.btn-danger:hover {
    background: #dc2626 !important;
}

.btn-vote {
    width: 100%;
    background: #3b82f6;
    color: white;
    padding: 0.75rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-vote:hover:not(:disabled) {
    background: #2563eb;
    transform: translateY(-2px);
}

.btn-vote:disabled {
    background: #475569;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-vote-theme {
    width: 100%;
    background: #8b5cf6;
    color: white;
    padding: 0.75rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-vote-theme:hover:not(:disabled) {
    background: #7c3aed;
    transform: translateY(-2px);
}

.btn-back {
    color: #60a5fa;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.btn-back:hover {
    color: #93c5fd;
}

/* ==================== ALERTS ==================== */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert.success {
    background: #059669;
    color: white;
}

.alert.error {
    background: #dc2626;
    color: white;
}

.alert.info {
    background: #0284c7;
    color: white;
}

.alert.warning {
    background: #d97706;
    color: white;
}

/* ==================== LOGIN PAGE ==================== */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
}

.login-box {
    background: #1e293b;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.login-box h2 {
    margin-bottom: 1rem;
    color: #60a5fa;
}

.login-box p {
    margin-bottom: 2rem;
    color: #cbd5e1;
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: white;
    color: #1e293b;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-google:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.login-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #94a3b8;
}

/* ==================== HOME PAGE ==================== */
.home-page h2 {
    color: #60a5fa;
    margin-bottom: 1rem;
}

.home-page h3 {
    color: #cbd5e1;
    margin: 2rem 0 1rem 0;
}

.current-competition {
    background: #1e293b;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.action-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.action-card {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    padding: 2rem;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    transition: all 0.3s;
    text-align: center;
}

.action-card.purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.action-card.gold {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.action-card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.action-card p {
    opacity: 0.9;
}

.competition-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.competition-item {
    background: #1e293b;
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.competition-info h4 {
    color: #60a5fa;
    margin-bottom: 0.5rem;
}

.competition-date {
    color: #94a3b8;
    font-size: 0.9rem;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.status-badge.aktiv {
    background: #059669;
    color: white;
}

.status-badge.avslutad {
    background: #64748b;
    color: white;
}

.no-data {
    text-align: center;
    color: #94a3b8;
    padding: 2rem;
    background: #1e293b;
    border-radius: 8px;
}

/* ==================== VOTE PAGE ==================== */
.vote-page h2 {
    color: #60a5fa;
    margin-bottom: 0.5rem;
}

.vote-page h3 {
    color: #cbd5e1;
    margin-bottom: 0.5rem;
}
.vote-page-red{
    font-size: 1.2em;
    color: rgb(217, 76, 76);
    padding-bottom: 1rem;
}

.vote-page h4 {
    color: #93c5fd;
    margin-bottom: 1.5rem;
}

.theme-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.theme-tab {
    background: #1e293b;
    color: #cbd5e1;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.theme-tab:hover {
    background: #334155;
}

.theme-tab.active {
    background: #3b82f6;
    color: white;
}

.voted-indicator {
    color: #10b981;
    font-weight: bold;
}

.current-theme {
    color: #93c5fd;
    margin-bottom: 1.5rem;
}

.instruction {
    color: #cbd5e1;
    margin-bottom: 1.5rem;
}

/* Photo Grid for voting */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.photo-card {
    background: #1e293b;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.photo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.photo-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
    background: #0f172a;
}

.photo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.photo-image:hover img {
    transform: scale(1.05);
}

.photo-info {
    padding: 1rem;
}

.photo-info h5 {
    color: #cbd5e1;
    margin-bottom: 0.75rem;
}

/* Photographer Grid */
.photographer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.photographer-card {
    background: #1e293b;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
}

.photographer-card:hover {
    background: #334155;
    transform: translateY(-5px);
}

.photographer-icon {
    width: 80px;
    height: 80px;
    background: #334155;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
}

.photographer-card h4 {
    color: #cbd5e1;
}

/* Theme Photos Grid (small thumbnails) */
.theme-photos-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.theme-photo-card {
    text-align: center;
}

.small-photo {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: #0f172a;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.small-photo:hover {
    border-color: #60a5fa;
    transform: scale(1.05);
}

.small-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.theme-photo-info {
    margin-top: 0.5rem;
}

.theme-photo-info h5 {
    color: #cbd5e1;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* ==================== MODAL FOR IMAGE ==================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from { transform: translate(-50%, -50%) scale(0.8); }
    to { transform: translate(-50%, -50%) scale(1); }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.modal-close:hover {
    color: #60a5fa;
}

.modal-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: white;
    padding: 10px 0;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
}

/* ==================== RESULTS PAGE ==================== */
.results-page h2 {
    color: #60a5fa;
    margin-bottom: 0.5rem;
}

.results-page h3 {
    color: #cbd5e1;
    margin-bottom: 2rem;
}

.results-page h4 {
    color: #93c5fd;
    margin: 2rem 0 1.5rem 0;
}

.results-stats {
    background: #1e293b;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    text-align: center;
}

.results-section {
    margin-bottom: 3rem;
}

.theme-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.nav-arrow {
    color: #60a5fa;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    background: #1e293b;
    transition: all 0.3s;
    white-space: nowrap;
}

.nav-arrow:hover {
    background: #334155;
}

.nav-arrow.disabled {
    opacity: 0;
    pointer-events: none;
}

.current-theme-title {
    color: #93c5fd;
    text-align: center;
    flex: 1;
}

.results-grid {
    display: grid;
    gap: 1.5rem;
}

.result-card {
    background: #1e293b;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.result-card.first-place {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    grid-column: 1 / -1;
}

.medal {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.result-image {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 1rem;
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.result-image:hover img {
    transform: scale(1.05);
}

.result-card h6 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: white;
}

.photographer-name {
    font-size: 1.1rem;
    color: white;
    margin-bottom: 0.5rem;
}

.votes {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.second-third-places {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.result-card.second-place,
.result-card.third-place {
    background: #1e293b;
}

.result-image-small {
    width: 100%;
    aspect-ratio: 1;
    margin: 0 auto 1rem;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.result-image-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.result-image-small:hover img {
    transform: scale(1.05);
}

.theme-progress {
    text-align: center;
    color: #94a3b8;
    margin-top: 1.5rem;
}

.section-divider {
    border: none;
    border-top: 2px solid #334155;
    margin: 3rem 0;
}

.best-theme-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.best-theme-card {
    background: #1e293b;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.best-theme-card.place-1 {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.place-number {
    font-size: 2rem;
    font-weight: bold;
}

.best-theme-info h6 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.theme-name {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.25rem;
}

/* ==================== ADMIN STYLES ==================== */
.admin-header {
    background: #0f172a;
    border-bottom: 2px solid #334155;
    padding: 1rem 0;
}

.admin-header h1 {
    color: #60a5fa;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #cbd5e1;
}

.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    padding: 2rem;
}

.admin-nav {
    background: #1e293b;
    border-radius: 12px;
    padding: 1rem;
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.admin-nav a {
    display: block;
    color: #cbd5e1;
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    transition: all 0.3s;
}

.admin-nav a:hover {
    background: #334155;
}

.admin-nav a.active {
    background: #3b82f6;
    color: white;
}

.admin-content h2 {
    color: #60a5fa;
    margin-bottom: 2rem;
}

.admin-content h3 {
    color: #93c5fd;
    margin: 2rem 0 1rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: #1e293b;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #60a5fa;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #94a3b8;
}

.filter-section {
    background: #1e293b;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.filter-section label {
    display: block;
    color: #cbd5e1;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.filter-section select {
    width: 100%;
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid #334155;
    background: #0f172a;
    color: #e2e8f0;
    font-size: 1rem;
}

.form-section {
    background: #1e293b;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: #cbd5e1;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid #334155;
    background: #0f172a;
    color: #e2e8f0;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #60a5fa;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.admin-table {
    width: 100%;
    background: #1e293b;
    border-radius: 12px;
    overflow: hidden;
}

.admin-table thead {
    background: #0f172a;
}

.admin-table th {
    padding: 1rem;
    text-align: left;
    color: #60a5fa;
    font-weight: 600;
}

.admin-table td {
    padding: 1rem;
    border-top: 1px solid #334155;
    color: #cbd5e1;
}

.admin-table tbody tr:hover {
    background: #334155;
}

.quick-actions {
    background: #1e293b;
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.quick-actions h3 {
    color: #93c5fd;
    margin-bottom: 1rem;
}

.quick-actions a {
    margin-right: 1rem;
    margin-bottom: 1rem;
}

/* Photo Admin Grid */
.photo-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.photo-admin-card {
    background: #1e293b;
    border-radius: 12px;
    overflow: hidden;
}

.photo-admin-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.photo-admin-info {
    padding: 1rem;
}

.photo-admin-info p {
    color: #cbd5e1;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* Stats Tables */
.stats-section {
    margin-bottom: 2rem;
}

.theme-stat {
    background: #1e293b;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.theme-stat h5 {
    color: #93c5fd;
    margin-bottom: 1rem;
}

.stats-table {
    width: 100%;
    background: #0f172a;
    border-radius: 8px;
    overflow: hidden;
}

.stats-table thead {
    background: #1e293b;
}

.stats-table th {
    padding: 0.75rem;
    text-align: left;
    color: #60a5fa;
}

.stats-table td {
    padding: 0.75rem;
    border-top: 1px solid #334155;
    color: #cbd5e1;
}

.login-form {
    text-align: left;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .admin-container {
        grid-template-columns: 1fr;
    }
    
    .admin-nav {
        position: static;
        display: flex;
        overflow-x: auto;
        padding: 0.5rem;
    }
    
    .admin-nav a {
        white-space: nowrap;
        margin-bottom: 0;
        margin-right: 0.5rem;
    }
    
    .theme-photos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions button,
    .form-actions a {
        width: 100%;
    }
    
    .admin-table {
        font-size: 0.9rem;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .theme-photos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .action-cards {
        grid-template-columns: 1fr;
    }
    
    .photographer-grid {
        grid-template-columns: 1fr;
    }
}


/* ==================== PRISPALL DESIGN ==================== */
.podium-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 2rem;
    margin: 3rem auto;
    max-width: 1000px;
    padding: 2rem;
}

.podium-place {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    max-width: 280px;
}

/* Första plats - högst och störst */
.podium-place.first-place {
    order: 2;
    z-index: 3;
}

/* Andra plats - mellanstort */
.podium-place.second-place {
    order: 1;
    z-index: 2;
    margin-top: 3rem;
}

/* Tredje plats - minst */
.podium-place.third-place {
    order: 3;
    z-index: 1;
    margin-top: 5rem;
}

.podium-medal {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

.podium-place.first-place .podium-medal {
    font-size: 4rem;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.podium-image {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.3s;
    border: 4px solid transparent;
    background: #0f172a;
}

.podium-place.first-place .podium-image {
    border-color: #f59e0b;
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.5);
}

.podium-place.second-place .podium-image {
    border-color: #94a3b8;
}

.podium-place.third-place .podium-image {
    border-color: #cd7f32;
}

.podium-image:hover {
    transform: translateY(-10px) scale(1.05);
}

.podium-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.podium-info {
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.podium-rank {
    font-size: 1.1rem;
    font-weight: bold;
    color: #60a5fa;
    margin-bottom: 0.5rem;
}

.podium-place.first-place .podium-rank {
    font-size: 1.3rem;
    color: #f59e0b;
}

.podium-name {
    font-size: 1.1rem;
    color: #e2e8f0;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.podium-place.first-place .podium-name {
    font-size: 1.3rem;
}

.podium-votes {
    font-size: 1rem;
    color: #cbd5e1;
}

.podium-place.first-place .podium-votes {
    font-size: 1.1rem;
    font-weight: bold;
}

/* Prispall-bas */
.podium-base {
    width: 100%;
    background: linear-gradient(to bottom, #1e293b, #0f172a);
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.1);
    border: 2px solid #334155;
    margin-top: 1rem;
}

.podium-base-first {
    height: 200px;
    background: linear-gradient(to bottom, #f59e0b, #d97706);
    color: rgba(255, 255, 255, 0.2);
    border-color: #f59e0b;
}

.podium-base-second {
    height: 150px;
    background: linear-gradient(to bottom, #94a3b8, #64748b);
    color: rgba(255, 255, 255, 0.2);
    border-color: #94a3b8;
}

.podium-base-third {
    height: 120px;
    background: linear-gradient(to bottom, #cd7f32, #a0522d);
    color: rgba(255, 255, 255, 0.2);
    border-color: #cd7f32;
}

/* Responsiv prispall */
@media (max-width: 768px) {
    .podium-container {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    
    .podium-place {
        max-width: 100%;
        width: 100%;
        margin-top: 0 !important;
    }
    
    .podium-place.first-place {
        order: 1;
    }
    
    .podium-place.second-place {
        order: 2;
    }
    
    .podium-place.third-place {
        order: 3;
    }
    
    .podium-base {
        height: 80px !important;
    }
}

/* ==================== ORANGE ACTION CARD ==================== */
.action-card.orange {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.action-card.orange:hover {
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.4);
}

/* ==================== RESULTAT NAVIGATION ==================== */
.results-navigation {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.nav-link {
    background: #1e293b;
    color: #cbd5e1;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.nav-link:hover {
    background: #334155;
}

.nav-link.active {
    background: #3b82f6;
    color: white;
    border-color: #60a5fa;
}

/* ==================== FOTOGRAF PRISPALL ==================== */
.photographer-podium-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 2rem;
    margin: 3rem auto;
    max-width: 1200px;
    padding: 2rem;
}

.photographer-podium-place {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    max-width: 350px;
}

/* Första plats - högst och störst */
.photographer-podium-place.first-place {
    order: 2;
    z-index: 3;
}

/* Andra plats - mellanstort */
.photographer-podium-place.second-place {
    order: 1;
    z-index: 2;
    margin-top: 2rem;
}

/* Tredje plats - minst */
.photographer-podium-place.third-place {
    order: 3;
    z-index: 1;
    margin-top: 3rem;
}

.photographer-podium-info {
    text-align: center;
    margin-bottom: 1.5rem;
    background: #1e293b;
    padding: 1.5rem;
    border-radius: 12px;
    width: 100%;
}

.photographer-podium-place.first-place .photographer-podium-info {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.2));
    border: 2px solid #f59e0b;
}

.photographer-podium-place.second-place .photographer-podium-info {
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.2), rgba(100, 116, 139, 0.2));
    border: 2px solid #94a3b8;
}

.photographer-podium-place.third-place .photographer-podium-info {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.2), rgba(160, 82, 45, 0.2));
    border: 2px solid #cd7f32;
}

.podium-winning-theme {
    font-size: 0.95rem;
    color: #cbd5e1;
    margin: 0.5rem 0;
}

.podium-winning-theme strong {
    color: #60a5fa;
}

.photographer-podium-place.first-place .podium-winning-theme strong {
    color: #fbbf24;
}

/* Småbilder på fotografens bidrag */
.photographer-thumbnails {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    width: 100%;
    margin-bottom: 1rem;
}

.photographer-podium-place.first-place .photographer-thumbnails {
    gap: 0.75rem;
}

.thumbnail-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #334155;
    transition: all 0.3s;
    background: #0f172a;
}

.thumbnail-item:hover {
    transform: scale(1.1);
    z-index: 10;
    border-color: #60a5fa;
    box-shadow: 0 5px 15px rgba(96, 165, 250, 0.5);
}

.photographer-podium-place.first-place .thumbnail-item:hover {
    border-color: #fbbf24;
    box-shadow: 0 5px 15px rgba(251, 191, 36, 0.5);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.25rem;
    font-size: 0.7rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.thumbnail-item:hover .thumbnail-label {
    opacity: 1;
}

.photographer-podium-place.first-place .thumbnail-label {
    font-size: 0.75rem;
}

/* Fotograf prispall-bas */
.photographer-podium-base {
    width: 100%;
    background: linear-gradient(to bottom, #1e293b, #0f172a);
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.1);
    border: 2px solid #334155;
    margin-top: 1rem;
}

.photographer-podium-base.podium-base-first {
    height: 150px;
    background: linear-gradient(to bottom, #f59e0b, #d97706);
    color: rgba(255, 255, 255, 0.2);
    border-color: #f59e0b;
}

.photographer-podium-base.podium-base-second {
    height: 120px;
    background: linear-gradient(to bottom, #94a3b8, #64748b);
    color: rgba(255, 255, 255, 0.2);
    border-color: #94a3b8;
}

.photographer-podium-base.podium-base-third {
    height: 100px;
    background: linear-gradient(to bottom, #cd7f32, #a0522d);
    color: rgba(255, 255, 255, 0.2);
    border-color: #cd7f32;
}

/* Responsiv fotograf-prispall */
@media (max-width: 968px) {
    .photographer-thumbnails {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .photographer-podium-container {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    
    .photographer-podium-place {
        max-width: 100%;
        width: 100%;
        margin-top: 0 !important;
    }
    
    .photographer-podium-place.first-place {
        order: 1;
    }
    
    .photographer-podium-place.second-place {
        order: 2;
    }
    
    .photographer-podium-place.third-place {
        order: 3;
    }
    
    .photographer-podium-base {
        height: 80px !important;
    }
    
    .photographer-thumbnails {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .results-navigation {
        flex-direction: column;
    }
    
    .nav-link {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .photographer-thumbnails {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .action-cards {
        grid-template-columns: 1fr;
    }
}

/* ==================== ALLA FOTOGRAFER PÅ EN SIDA ==================== */
.all-photographers-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 2rem;
}

.photographer-section {
    background: #1e293b;
    border-radius: 12px;
    padding: 2rem;
    border: 2px solid #334155;
    transition: all 0.3s;
}

.photographer-section:hover {
    border-color: #60a5fa;
    box-shadow: 0 5px 20px rgba(96, 165, 250, 0.2);
}

.photographer-header {
    /* display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #334155; */
}

.photographer-header h4 {
    color: #60a5fa;
    font-size: 1.5rem;
    margin: 0;
}

.photo-count {
    background: #334155;
    color: #cbd5e1;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.photographer-photos-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.photographer-photo-item {
    position: relative;
}

.photo-wrapper {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border: 2px solid #334155;
    transition: all 0.3s;
    background: #0f172a;
}

.photo-wrapper:hover {
    border-color: #60a5fa;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(96, 165, 250, 0.3);
}

.photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.photo-wrapper:hover img {
    transform: scale(1.05);
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.photo-wrapper:hover .photo-overlay {
    opacity: 1;
}

.zoom-icon {
    font-size: 2rem;
}

.photo-theme-label {
    text-align: center;
    color: #cbd5e1;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

.vote-section {
    background: #0f172a;
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid #334155;
}

.vote-section.disabled {
    opacity: 0.6;
    border-color: #475569;
}

.vote-instruction {
    color: #cbd5e1;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1.1rem;
}

.theme-vote-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.btn-theme-vote {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(139, 92, 246, 0.3);
}

.btn-theme-vote:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(139, 92, 246, 0.4);
}

.already-voted {
    text-align: center;
    color: #94a3b8;
    font-size: 1.1rem;
    font-style: italic;
}

.no-data-small {
    text-align: center;
    color: #94a3b8;
    padding: 1rem;
    font-style: italic;
}

/* Responsiv design för fotografer-sidan */
@media (max-width: 1200px) {
    .photographer-photos-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 968px) {
    .photographer-photos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .photographer-photos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .photographer-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .theme-vote-buttons {
        flex-direction: column;
    }
    
    .btn-theme-vote {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .photographer-photos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}