/* VoleyBul - Maç Detay Sayfası Stil Dosyası */

:root {
    /* Ana site tema değişkenlerini koruyoruz */
    --primary: #FF6B00;     /* Turuncu - Ana renk */
    --secondary: #9a0000;   /* Koyu kırmızı - İkincil renk */
    --accent: #0077FF;      /* Canlı mavi - Vurgu rengi */
    --light-bg: #F4F4F4;    /* Açık gri - Arka plan rengi */
    --dark: #1E1E2F;        /* Koyu lacivert - Koyu ton */
    --text: #333333;        /* Koyu gri - Metin rengi */
    --white: #FFFFFF;       /* Beyaz - Temiz alanlar */
    
    /* Gölgeler */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.12);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    /* Geçişler */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===== ANA KONTEYNER DÜZENI ===== */
.match-detail-public-main {
    background-color: var(--light-bg);
    min-height: 80vh;
    padding: 40px 0;
    position: relative;
}

.match-detail-public-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    z-index: 0;
}

.match-detail-public-content,
.match-detail-public-videos {
    position: relative;
    z-index: 1;
    max-width: 1140px;
    margin: 0 auto;
    padding: 25px;
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    margin-bottom: 30px;
    overflow: hidden;
}

.match-detail-public-content:hover,
.match-detail-public-videos:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Maç Başlığı */
.match-detail-public-title {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--accent);
    position: relative;
}

/* Takım Logoları ve VS bölümü */
.match-teams {
    display: flex;
    align-items: center;
}

.team-logo, .team-logo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    border: 1.5px solid #eee;
    box-shadow: var(--shadow-sm);
    display: block;
    aspect-ratio: 1/1;
}

.match-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 40%;
}

.match-team span {
    font-size: 18px;
    font-weight: bold;
    color: var(--dark);
    text-align: center;
}

.team-logo {
    width: 150px;
    height: 150px;
    object-fit: contain;
    border-radius: 50%;
    padding: 10px;
    background-color: rgba(255,255,255,0.9);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal);
    border: 3px solid transparent;
}

.match-team:first-child .team-logo {
    border-color: rgba(255, 107, 0, 0.3);
}

.match-team:last-child .team-logo {
    border-color: rgba(0, 119, 255, 0.3);
}

.match-team:hover .team-logo {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.match-vs {
    font-size: 24px;
    font-weight: 800;
    color: var(--dark);
    padding: 10px 15px;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    position: relative;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Maç Bilgileri */
.match-detail-public-info {
    font-size: 16px;
    margin-bottom: 15px;
    padding: 10px 15px;
    border-radius: var(--radius-md);
    background-color: rgba(0,0,0,0.02);
    border-left: 4px solid var(--accent);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    transition: background-color var(--transition-normal);
}

.match-detail-public-info:hover {
    background-color: rgba(0,0,0,0.04);
}

.match-detail-public-info strong {
    color: var(--accent);
    margin-right: 5px;
}

.league-info {
    background: linear-gradient(to right, rgba(255,107,0,0.05), rgba(0,119,255,0.05));
    border-left: 4px solid var(--primary);
}

.league-info strong i {
    animation: rotate 4s infinite linear;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Video Bölümü */
.match-detail-public-videos {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Karşılaşma Fotoğrafları Bölümü */
.match-photos-section {
    margin-top: 30px;
}

.match-photos-section strong {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 15px;
    display: block;
}

.match-photos-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: space-between;
    margin-top: 15px;
}

.match-photo {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.match-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 16/9;
}

.match-photo:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.match-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}

.match-detail-public-videos strong {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 10px;
    display: block;
}

.video-responsive {
    position: relative;
    width: 100%;
    max-width: 700px;
    height: 500px;
    margin: 0 auto 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
    .video-responsive {
        height: 350px;
    }
}

@media (max-width: 576px) {
    .video-responsive {
        height: 250px;
    }
}

.video-responsive:hover {
    transform: scale(1.02);
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Set Skorları Tablosu */
.set-scores-table {
    width: 100%;
    margin: 25px 0;
    border-collapse: collapse;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    animation: fadeIn 0.8s ease;
}

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

.set-scores-table th {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 12px 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.set-scores-table th::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
    transform: translateX(-100%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.set-scores-table td {
    padding: 10px 15px;
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all var(--transition-normal);
}

.set-scores-table tr:nth-child(even) {
    background-color: rgba(0,0,0,0.02);
}

.set-scores-table tr:hover td {
    background-color: rgba(0,119,255,0.05);
}

/* Ödüller Bölümü */
.awards-container {
    margin-top: 40px;
    margin-bottom: 30px;
    animation: fadeIn 1s ease;
}

.awards-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 25px;
    text-align: center;
    color: var(--accent);
    position: relative;
    padding-bottom: 15px;
}

.awards-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

/* Taşınan ödül kartları için CSS stilleri */

.awards-container {
    margin-top: 30px;
    margin-bottom: 30px;
}

.awards-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    color: #1976d2;
    border-bottom: 2px solid #1976d2;
    padding-bottom: 10px;
}

.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.award-card {
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    background-color: #fff;
}

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

.award-card:hover::before {
    opacity: 1;
    top: 0;
}

.award-header {
    background: linear-gradient(45deg, var(--accent), #2196F3);
    color: white;
    padding: 12px 15px;
    font-weight: bold;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.award-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
    transform: translateX(-100%);
    animation: shimmer 3s infinite;
}

.mvp-header {
    background: linear-gradient(45deg, var(--primary), #f44336);
    font-size: 18px;
}

.award-body {
    padding: 15px;
    text-align: center;
}

.photo-wrapper {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    background: #f6f6f6;
    position: relative;
}

.mvp-photo-wrapper {
    width: 140px;
    height: 140px;
}

/* Ödül kartlarındaki oyuncu fotoğrafları için özel stil - Home sayfasıyla çakışmayı engellemek için */
.award-card .player-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #1976d2;
    background: #f6f6f6;
    display: block;
    box-sizing: border-box;
    padding-bottom: 0 !important; /* Home sayfasındaki padding-bottom değerini geçersiz kıl */
}

.mvp-photo {
    border-color: #ff9800;
}

.player-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.player-position {
    color: #666;
    margin-bottom: 10px;
}

.player-team {
    font-style: italic;
    color: #1976d2;
}

.no-awards {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}


.award-card:hover .player-photo {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.mvp-photo {
    border-color: #ff9800;
    width: 140px;
    height: 140px;
}

.player-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--dark);
    transition: all var(--transition-normal);
}

.award-card:hover .player-name {
    color: var(--accent);
}

.award-card:nth-child(1):hover .player-name {
    color: var(--primary);
}

.player-position {
    color: var(--text);
    margin-bottom: 12px;
    font-size: 15px;
    padding: 3px 12px;
    background-color: rgba(0,0,0,0.05);
    border-radius: 20px;
    display: inline-block;
}

.player-team {
    font-weight: 600;
    color: var(--accent);
    position: relative;
    padding-bottom: 5px;
}

.player-team::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width var(--transition-normal);
}

.award-card:hover .player-team::after {
    width: 80%;
}

.no-awards {
    text-align: center;
    padding: 30px 20px;
    color: var(--text);
    font-style: italic;
    background-color: rgba(0,0,0,0.02);
    border-radius: var(--radius-md);
    border: 1px dashed rgba(0,0,0,0.1);
    margin: 20px 0;
}

/* Responsive Tasarım */
@media (max-width: 992px) {
    .match-detail-public-main {
        padding: 30px 15px;
    }
    
    .match-detail-public-title {
        font-size: 24px;
    }
    
    .awards-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .match-detail-public-content,
    .match-detail-public-videos {
        padding: 20px 15px;
    }
    
    .match-detail-public-title {
        font-size: 22px;
    }
    
    .awards-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }
    
    .player-photo {
        width: 110px;
        height: 110px;
    }
    
    .mvp-photo {
        width: 130px;
        height: 130px;
    }
}

@media (max-width: 576px) {
    .match-detail-public-main {
        padding: 20px 10px;
    }
    
    .match-detail-public-title {
        font-size: 20px;
    }
    
    .match-detail-public-title::before {
        font-size: 24px;
    }
    
    .awards-grid {
        grid-template-columns: 1fr;
    }
    
    .set-scores-table th, 
    .set-scores-table td {
        padding: 8px;
    }
}
