﻿/* Base Styles */
/** {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}*/

/*body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f0f0f0;
    gap: 30px;
    padding: 30px 0;
}*/

.card-examples {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

/* Card Container */
.new-card-container {
    width: 100%;
    max-width: 350px;
    padding: 20px;
    perspective: 1000px;
}

/* Player Card */
.new-card-player-card {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .new-card-player-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    }

/* Card Header */
.new-card-header {
    background-color: #1a1a4a;
    padding: 10px 15px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.new-card-sport-name-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.new-card-sport-name {
    font-weight: bold;
    font-size: 16px;
    letter-spacing: 1px;
    display: -webkit-box;
    -webkit-line-clamp: 1; /* Show only 1 line, add ... if too long */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    word-break: break-word;
    cursor: pointer;
    max-width: 100%;
}

.new-card-tooltip {
    visibility: hidden;
    opacity: 0;
    width: 250px;
    background-color: #222;
    color: #fff;
    text-align: left;
    border-radius: 6px;
    padding: 8px 12px;
    position: absolute;
    z-index: 10;
    left: 0;
    top: 110%;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: opacity 0.2s;
    pointer-events: none;
    white-space: pre-line;
}
.new-card-sport-name-wrapper:hover .new-card-tooltip,
.new-card-sport-name-wrapper:focus-within .new-card-tooltip {
    visibility: visible;
    opacity: 1;
}
/* Badge styles */
.badge {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #1a1a4a;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    /*border: 1px solid;*/
    transition: all 0.3s ease;
}

/* Content Styles - Base */
.content {
    display: flex;
    flex-direction: column;
    padding: 15px 10px;
    position: relative;
    overflow: hidden;
    transition: background 0.5s ease;
}

/* Content row */
.content-row {
    display: flex;
    margin-bottom: 15px;
}

/* Stats Columns - Base */
.stats-left,
.stats-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
    z-index: 1;
}

.stat-item {
    background-color: rgba(255, 255, 255, 0.7); /* More transparency */
    border-radius: 15px;
    padding: 3px 8px; /* Reduced width */
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    width: 90%; /* Make them less wide */
    margin: 0 auto;
}

    .stat-item:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        background-color: rgba(255, 255, 255, 0.8);
    }

.stat-label {
    font-size: 9px;
    color: #666;
    font-weight: bold;
}

.stat-value {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    line-height: 1;
    transition: all 0.3s ease;
}

/* Player Section - Base */
.player-section {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
    position: relative;
}

/* Professional Avatar Styles */
.player-avatar-professional {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    position: relative;
    background: linear-gradient(135deg, #3eaf7c 0%, #2d8f5f 100%);
    border: 3px solid white;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 
                0 0 0 2px rgba(62, 175, 124, 0.3);
    overflow: hidden;
}

.player-avatar-professional:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 
                0 0 0 3px rgba(62, 175, 124, 0.5);
}

/* Avatar with Initials */
.avatar-initials {
    font-size: 28px;
    font-weight: bold;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
    z-index: 2;
    position: relative;
}

/* Paddock Logo Overlay */
.avatar-logo-overlay {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 30px;
    height: 30px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 3;
}

.paddock-logo-small {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* Avatar with Center Logo (fallback) */
.avatar-logo-center {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
}

.paddock-logo-main {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Legacy Avatar Styles (kept for backward compatibility) */
.player-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: white;
    position: relative;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50 10 C35 10 25 25 25 40 C25 55 35 65 50 65 C65 65 75 55 75 40 C75 25 65 10 50 10 Z" fill="%23e0e0e0"/><path d="M30 85 C30 65 40 60 50 60 C60 60 70 65 70 85 Z" fill="%23e0e0e0"/></svg>');
    background-size: cover;
    background-position: center;
    border: 3px solid white;
    transition: all 0.3s ease;
}

/* Player Name - Base */
.player-name-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 15px;
    margin-bottom: 35px;
    z-index: 2;
}

.player-name {
    background-color: rgba(255, 255, 255, 0.8);
    color: black;
    border-radius: 15px;
    padding: 6px 15px;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: inline-block;
    width: 100%;
    transition: all 0.3s ease;
}

/* Country Flag - Base */
.country-flag {
    position: absolute;
    bottom: 5px;
    right: 5px;
    display: flex;
    align-items: flex-end; /* or center if you want vertical centering */
    justify-content: flex-end;
    z-index: 2;
    flex-direction: column;
}

.flag-inner {
    width: 25px;
    height: 15px;
    display: flex;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.flag-stripe {
    flex: 1;
    height: 100%;
}

    .flag-stripe.blue {
        background-color: #0055a4;
    }

    .flag-stripe.white {
        background-color: white;
    }

    .flag-stripe.red {
        background-color: #ef4135;
    }

.country-label {
    margin-top: 2px;
    font-size: 7px;
    color: #333;
    font-weight: bold;
}

/* Additional shine elements */
.shine {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
    transition: all 0.5s ease;
}

.shine-1 {
    width: 40px;
    height: 40px;
    top: 20%;
    left: 15%;
    opacity: 0;
    animation: shine-pulse 4s infinite ease-in-out;
}

.shine-2 {
    width: 30px;
    height: 30px;
    bottom: 30%;
    right: 20%;
    opacity: 0;
    animation: shine-pulse 5s infinite ease-in-out 1s;
}

.shine-3 {
    width: 20px;
    height: 20px;
    top: 60%;
    left: 30%;
    opacity: 0;
    animation: shine-pulse 3s infinite ease-in-out 2s;
}

@keyframes shine-pulse {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }

    100% {
        opacity: 0;
        transform: scale(0.8);
    }
}

/* Rare special effects */
.rare-effect {
    position: absolute;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.rare-sparkle-1,
.rare-sparkle-2,
.rare-sparkle-3,
.rare-sparkle-4 {
    width: 10px;
    height: 10px;
    background-color: white;
    border-radius: 50%;
    filter: blur(1px);
}

.rare-sparkle-1 {
    top: 20%;
    left: 10%;
    animation: rare-sparkle 2s infinite ease-in-out;
}

.rare-sparkle-2 {
    top: 70%;
    left: 80%;
    animation: rare-sparkle 2.5s infinite ease-in-out 0.5s;
}

.rare-sparkle-3 {
    top: 30%;
    left: 85%;
    animation: rare-sparkle 3s infinite ease-in-out 1s;
}

.rare-sparkle-4 {
    top: 80%;
    left: 20%;
    animation: rare-sparkle 2.2s infinite ease-in-out 1.5s;
}

@keyframes rare-sparkle {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.5);
        opacity: 1;
    }

    100% {
        transform: scale(0);
        opacity: 0;
    }
}

.rare-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 0, 255, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
    animation: rare-glow 4s infinite alternate;
}

@keyframes rare-glow {
    0% {
        opacity: 0.3;
        background-position: 0% 0%;
    }

    100% {
        opacity: 0.7;
        background-position: 100% 100%;
    }
}

.rare-rainbow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient( 45deg, rgba(255, 0, 0, 0.1), rgba(255, 165, 0, 0.1), rgba(255, 255, 0, 0.1), rgba(0, 128, 0, 0.1), rgba(0, 0, 255, 0.1), rgba(75, 0, 130, 0.1), rgba(238, 130, 238, 0.1) );
    background-size: 400% 400%;
    animation: rare-rainbow 10s linear infinite;
    mix-blend-mode: overlay;
}

@keyframes rare-rainbow {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

/* Shine animations */
@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(30deg);
    }

    100% {
        transform: translateX(100%) rotate(30deg);
    }
}

/* Card Footer */
.new-card-footer {
    background-color: #1a1a4a;
    padding: 12px 15px;
    color: white;
    display: flex;
}

.new-card-footer-left {
    flex: 2;
}

.new-card-rating {
    margin-bottom: 5px;
}

.new-card-star {
    color: gold;
    font-size: 14px;
    display: inline-block;
}

.new-card-description {
    font-size: 8px;
    color: #ccc;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 5; /* Show up to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    white-space: normal;
    cursor: pointer;
    word-break: break-word;
}

.new-card-footer-center {
    flex: 2;
    padding: 0 10px;
}

.new-card-skill-bar {
    margin-bottom: 8px;
}

.new-card-skill-label {
    font-size: 8px;
    margin-bottom: 2px;
}

.new-card-skill-progress {
    height: 5px;
    background-color: #333;
    border-radius: 2px;
    overflow: hidden;
}

.new-card-progress-fill {
    height: 100%;
    background: linear-gradient(to right, #ff3366, #ff66cc);
    transition: width 0.5s ease;
}

.new-card-footer-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.new-card-jersey-number {
    font-size: 40px;
    font-weight: bold;
    color: white;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

/* Gold Card Styles */
.gold-card .badge {
    color: #ffd700;
    border-color: #ffd700;
}

    .gold-card .badge i {
        filter: drop-shadow(0 0 2px rgba(255, 215, 0, 0.5));
    }

.gold-card .content {
    background: linear-gradient(135deg, #f0d060 0%, #d4af37 50%, #f0d060 100%);
}

    .gold-card .content::before {
        content: "";
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient( to bottom right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 100% );
        transform: rotate(30deg);
        animation: shine 6s infinite linear;
        pointer-events: none;
    }

.gold-card .player-avatar-professional {
    background: linear-gradient(135deg, #f0d060 0%, #d4af37 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 
                0 0 0 3px #d4af37;
}

.gold-card .player-avatar-professional:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 
                0 0 0 4px #f0d060;
}

.gold-card .player-avatar {
    box-shadow: 0 0 0 2px #d4af37, 0 0 15px rgba(0, 0, 0, 0.2);
}

    .gold-card .player-avatar:hover {
        box-shadow: 0 0 0 3px #f0d060, 0 0 20px rgba(212, 175, 55, 0.5);
    }

.gold-card .stat-value {
    content: "99";
}

.gold-card .rare-effect {
    opacity: 0;
}

/* Silver Card Styles */
.silver-card .badge {
    color: #c0c0c0;
    border-color: #c0c0c0;
}

    .silver-card .badge i {
        filter: drop-shadow(0 0 2px rgba(192, 192, 192, 0.5));
    }

.silver-card .content {
    background: linear-gradient(135deg, #e0e0e0 0%, #c0c0c0 50%, #e0e0e0 100%);
}

    .silver-card .content::before {
        content: "";
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient( to bottom right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 100% );
        transform: rotate(30deg);
        animation: shine 6s infinite linear;
        pointer-events: none;
    }

.silver-card .player-avatar-professional {
    background: linear-gradient(135deg, #e0e0e0 0%, #c0c0c0 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 
                0 0 0 3px #c0c0c0;
}

.silver-card .player-avatar-professional:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 
                0 0 0 4px #e0e0e0;
}

.silver-card .avatar-initials {
    color: #333;
}

.silver-card .player-avatar {
    box-shadow: 0 0 0 2px #c0c0c0, 0 0 15px rgba(0, 0, 0, 0.2);
}

    .silver-card .player-avatar:hover {
        box-shadow: 0 0 0 3px #e0e0e0, 0 0 20px rgba(192, 192, 192, 0.5);
    }

.silver-card .stat-value {
    content: "90";
}

.silver-card .new-card-progress-fill.skill-dribbling {
    width: 75%;
}

.silver-card .new-card-progress-fill.skill-speed {
    width: 60%;
}

.silver-card .new-card-progress-fill.skill-strength {
    width: 85%;
}

.silver-card .rare-effect {
    opacity: 0;
}

/* Bronze Card Styles */
.bronze-card .badge {
    color: #cd7f32;
    border-color: #cd7f32;
}

    .bronze-card .badge i {
        filter: drop-shadow(0 0 2px rgba(205, 127, 50, 0.5));
    }

.bronze-card .content {
    background: linear-gradient(135deg, #e0a370 0%, #cd7f32 50%, #e0a370 100%);
}

    .bronze-card .content::before {
        content: "";
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient( to bottom right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 100% );
        transform: rotate(30deg);
        animation: shine 6s infinite linear;
        pointer-events: none;
    }

.bronze-card .player-avatar-professional {
    background: linear-gradient(135deg, #e0a370 0%, #cd7f32 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 
                0 0 0 3px #cd7f32;
}

.bronze-card .player-avatar-professional:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 
                0 0 0 4px #e0a370;
}

.bronze-card .player-avatar {
    box-shadow: 0 0 0 2px #cd7f32, 0 0 15px rgba(0, 0, 0, 0.2);
}

    .bronze-card .player-avatar:hover {
        box-shadow: 0 0 0 3px #e0a370, 0 0 20px rgba(205, 127, 50, 0.5);
    }

.bronze-card .stat-value {
    content: "80";
}

.bronze-card .new-card-progress-fill.skill-dribbling {
    width: 70%;
}

.bronze-card .new-card-progress-fill.skill-speed {
    width: 55%;
}

.bronze-card .new-card-progress-fill.skill-strength {
    width: 80%;
}

.bronze-card .rare-effect {
    opacity: 0;
}

/* Rare Card Styles */
.rare-card .badge {
    color: #ff00cc;
    border-color: #3333ff;
    animation: rare-badge-color 3s infinite linear;
}

    .rare-card .badge i {
        filter: drop-shadow(0 0 4px rgba(255, 0, 204, 0.7));
        animation: rare-badge-pulse 1.5s infinite ease-in-out;
    }

@keyframes rare-badge-color {
    0% {
        color: #ff00cc;
        border-color: #3333ff;
    }

    25% {
        color: #3333ff;
        border-color: #00ccff;
    }

    50% {
        color: #00ccff;
        border-color: #33cc33;
    }

    75% {
        color: #33cc33;
        border-color: #ff00cc;
    }

    100% {
        color: #ff00cc;
        border-color: #3333ff;
    }
}

@keyframes rare-badge-pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.rare-card .content {
    background: linear-gradient(135deg, #6600cc 0%, #9900ff 50%, #6600cc 100%);
}

    .rare-card .content::before {
        content: "";
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient( to bottom right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 100% );
        transform: rotate(30deg);
        animation: shine 4s infinite linear;
        pointer-events: none;
    }

.rare-card .player-avatar-professional {
    background: linear-gradient(135deg, #9900ff 0%, #6600cc 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 
                0 0 0 3px #ff00cc;
    animation: rare-avatar-border 3s infinite linear;
}

.rare-card .player-avatar-professional:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 
                0 0 0 4px #3333ff;
}

.rare-card .player-avatar {
    box-shadow: 0 0 0 2px #ff00cc, 0 0 15px rgba(255, 0, 204, 0.4);
    animation: rare-avatar-border 3s infinite linear;
}

    .rare-card .player-avatar:hover {
        box-shadow: 0 0 0 3px #3333ff, 0 0 20px rgba(51, 51, 255, 0.6);
    }

@keyframes rare-avatar-border {
    0% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 0 3px #ff00cc;
    }

    25% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 0 3px #3333ff;
    }

    50% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 0 3px #00ccff;
    }

    75% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 0 3px #33cc33;
    }

    100% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 0 3px #ff00cc;
    }
}

.rare-card .stat-value {
    background: linear-gradient(45deg, #ff00cc, #3333ff, #00ccff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 5px rgba(255, 0, 255, 0.3);
}

.rare-card .player-name {
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.3);
    text-shadow: 0 0 5px rgba(255, 0, 255, 0.3);
    animation: rare-name-glow 3s infinite alternate;
}

@keyframes rare-name-glow {
    0% {
        box-shadow: 0 0 10px rgba(255, 0, 255, 0.3);
    }

    100% {
        box-shadow: 0 0 20px rgba(51, 51, 255, 0.5);
    }
}

.rare-card .flag-inner {
    box-shadow: 0 0 5px rgba(255, 0, 255, 0.5);
}

.rare-card .new-card-progress-fill.skill-dribbling {
    width: 95%;
}

.rare-card .new-card-progress-fill.skill-speed {
    width: 95%;
}

.rare-card .new-card-progress-fill.skill-strength {
    width: 95%;
}

.rare-card .rare-effect {
    opacity: 1;
}
