/**
 * TRCodex Haftanın Futbolcusu - Widget Styles
 * Modern, premium card design
 */

/* Variables */
:root {
    --potw-primary: #E31E24;
    --potw-primary-light: rgba(227, 30, 36, 0.1);
    --potw-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
    --potw-radius: 20px;
    --potw-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Widget Container */
.potw-widget {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Card */
.potw-card {
    background: #ffffff;
    border-radius: var(--potw-radius);
    overflow: hidden;
    box-shadow: var(--potw-shadow);
    transition: var(--potw-transition);
    position: relative;
}

.potw-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18);
}

/* Badge Header */
.potw-badge {
    background: linear-gradient(135deg, var(--potw-primary) 0%, #ff4757 100%);
    color: #ffffff;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.5px;
}

.potw-badge svg {
    animation: star-pulse 2s ease-in-out infinite;
}

@keyframes star-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

.potw-week {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
}

/* Photo Container */
.potw-photo-container {
    padding: 40px 40px 20px;
    position: relative;
    display: flex;
    justify-content: center;
}

.potw-photo {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--potw-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: var(--potw-transition);
}

.potw-card:hover .potw-photo {
    transform: scale(1.03);
    box-shadow: 0 15px 40px rgba(227, 30, 36, 0.3);
}

.potw-photo-placeholder {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    border-radius: 50%;
    border: 5px solid var(--potw-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
}

/* Jersey Number */
.potw-jersey {
    position: absolute;
    bottom: 10px;
    right: calc(50% - 120px);
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--potw-primary) 0%, #ff4757 100%);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    border: 4px solid #ffffff;
    box-shadow: 0 5px 15px rgba(227, 30, 36, 0.4);
    transition: var(--potw-transition);
}

.potw-card:hover .potw-jersey {
    transform: scale(1.1) rotate(5deg);
}

/* Player Info */
.potw-info {
    padding: 10px 30px 35px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.potw-name {
    margin: 0 0 15px;
    font-size: 26px;
    font-weight: 800;
    color: #1a1a2e;
    letter-spacing: -0.02em;
    text-align: center;
    width: 100%;
}

/* Details */
.potw-details {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.potw-club,
.potw-position {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

.potw-club svg,
.potw-position svg {
    color: var(--potw-primary);
    opacity: 0.8;
}

/* Stats */
.potw-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin: 25px 0;
    padding: 20px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.potw-stat {
    text-align: center;
}

.potw-stat-value {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: var(--potw-primary);
    line-height: 1;
    margin-bottom: 6px;
}

.potw-stat-label {
    display: block;
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Description */
.potw-description {
    margin: 20px 0 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
    font-style: italic;
}

/* Notice */
.potw-notice {
    padding: 40px 24px;
    background: linear-gradient(135deg, #fef3cd 0%, #fff3e0 100%);
    border: 2px dashed #ffc107;
    border-radius: 16px;
    color: #856404;
    text-align: center;
}

.potw-notice p {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 480px) {
    .potw-badge {
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px 16px;
    }

    .potw-photo-container {
        padding: 30px 20px 15px;
    }

    .potw-photo,
    .potw-photo-placeholder {
        width: 160px;
        height: 160px;
    }

    .potw-jersey {
        width: 48px;
        height: 48px;
        font-size: 18px;
        right: calc(50% - 100px);
    }

    .potw-info {
        padding: 10px 20px 30px;
    }

    .potw-name {
        font-size: 22px;
    }

    .potw-details {
        flex-direction: column;
        gap: 10px;
    }

    .potw-stats {
        gap: 30px;
    }

    .potw-stat-value {
        font-size: 28px;
    }
}

/* Animation on scroll */
.potw-widget {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.potw-widget.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== */
/* MINI WIDGET (Ana Sayfa) */
/* ==================== */

.potw-mini-widget {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.potw-mini-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: var(--potw-transition);
}

.potw-mini-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Mini Badge */
.potw-mini-badge {
    background: linear-gradient(135deg, var(--potw-primary) 0%, #ff4757 100%);
    color: #ffffff;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: 13px;
}

.potw-mini-badge svg {
    animation: star-pulse 2s ease-in-out infinite;
}

.potw-mini-week {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
}

/* Mini Content */
.potw-mini-content {
    display: flex;
    align-items: center;
    padding: 20px;
    gap: 20px;
}

/* Mini Photo */
.potw-mini-photo-wrap {
    position: relative;
    flex-shrink: 0;
}

.potw-mini-photo {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--potw-primary);
}

.potw-mini-photo-placeholder {
    width: 80px;
    height: 80px;
    background: #f5f5f5;
    border-radius: 50%;
    border: 3px solid var(--potw-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
}

.potw-mini-jersey {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 28px;
    height: 28px;
    background: var(--potw-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    border: 2px solid #fff;
}

/* Mini Info */
.potw-mini-info {
    flex: 1;
    min-width: 0;
}

.potw-mini-name {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
}

.potw-mini-details {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.potw-mini-club,
.potw-mini-position {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.potw-mini-club::before {
    content: '⚽ ';
}

.potw-mini-position::before {
    content: '📍 ';
}

/* Mini Stats */
.potw-mini-stats {
    display: flex;
    gap: 20px;
    flex-shrink: 0;
    padding-left: 20px;
    border-left: 1px solid #f0f0f0;
}

.potw-mini-stat {
    text-align: center;
}

.potw-mini-stat-value {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: var(--potw-primary);
    line-height: 1;
}

.potw-mini-stat-label {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    text-transform: uppercase;
    margin-top: 4px;
}

/* Mini Responsive */
@media (max-width: 600px) {
    .potw-mini-content {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .potw-mini-info {
        width: 100%;
        text-align: center;
    }

    .potw-mini-details {
        justify-content: center;
    }

    .potw-mini-stats {
        width: 100%;
        justify-content: center;
        padding-left: 0;
        padding-top: 15px;
        border-left: none;
        border-top: 1px solid #f0f0f0;
    }
}