/* =========================================
   PREMIUM LUXURY ANIMATIONS
   ========================================= */

@keyframes premiumFadeUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes premiumScaleUp {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }

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

.ad-glass-card {
    animation: premiumFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.ad-col-left {
    opacity: 0;
    animation: premiumFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

.ad-col-right {
    opacity: 0;
    animation: premiumFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.ad-stat-item {
    opacity: 0;
    animation: premiumScaleUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.ad-stat-item:nth-child(1) {
    animation-delay: 0.25s;
}

.ad-stat-item:nth-child(2) {
    animation-delay: 0.35s;
}

.ad-stat-item:nth-child(3) {
    animation-delay: 0.45s;
}

.ad-stat-item:nth-child(4) {
    animation-delay: 0.55s;
}

.ad-stat-item:nth-child(5) {
    animation-delay: 0.65s;
}

.ad-stat-item:nth-child(6) {
    animation-delay: 0.75s;
}

/* Quick Links (Control Center Style) */
.ad-quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.ad-link-tile {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    border: none;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .ad-link-tile {
    background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.96) 0%, rgba(17, 24, 39, 0.92) 100%);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 6px 18px rgba(0, 0, 0, 0.35), 0 18px 36px rgba(0, 0, 0, 0.45);
}



.ad-tile-copy {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
}

.ad-link-tile:hover .ad-tile-copy {
    opacity: 1;
    transform: translateY(0);
}

.ad-tile-copy:hover {
    background: #0f172a;
    color: #ffffff;
    transform: scale(1.1) !important;
}

[data-theme="dark"] .ad-tile-copy {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

[data-theme="dark"] .ad-tile-copy:hover {
    background: #ffffff;
    color: #000000;
}

.ad-tile-copy svg {
    width: 16px;
    height: 16px;
}

.ad-tile-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 0 6px #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    z-index: 1;
    margin-left: 6px;
    transition: all 0.4s ease;
}

[data-theme="dark"] .ad-tile-icon {
    background: #1e293b;
    box-shadow: 0 0 0 6px #0f172a;
    color: #3b82f6;
}

.ad-link-tile:hover .ad-tile-icon {
    transform: scale(1.05);
}

[data-theme="dark"] .ad-link-tile:hover .ad-tile-icon {
    transform: scale(1.05);
}

.ad-tile-icon svg {
    width: 24px;
    height: 24px;
    stroke: #2563eb;
}

.ad-tile-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 1;
}

.ad-tile-title {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.4s ease;
}

[data-theme="dark"] .ad-tile-title {
    color: #ffffff;
}

.ad-tile-sub {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    transition: color 0.4s ease;
}

.ad-link-label {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    display: block;
    margin-bottom: 8px;
}

.ad-link-url {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f9fa;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 8px;
    padding: 12px 16px;
    color: #1e293b !important;
    text-decoration: none;
    font-size: 13.5px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    word-break: break-all;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.ad-link-url::after {
    content: '';
    display: inline-block;
    min-width: 16px;
    min-height: 16px;
    margin-left: 12px;
    opacity: 0.5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230f172a' stroke-width='2'%3E%3Crect x='9' y='9' width='13' height='13' rx='2' ry='2'%3E%3C/rect%3E%3Cpath d='M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    transition: opacity 0.2s ease;
}

[data-theme="dark"] .ad-link-url {
    background: #111;
    border-color: rgba(255, 255, 255, 0.1);
    color: #cccccc !important;
}

[data-theme="dark"] .ad-link-url::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ffffff' stroke-width='2'%3E%3Crect x='9' y='9' width='13' height='13' rx='2' ry='2'%3E%3C/rect%3E%3Cpath d='M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1'%3E%3C/path%3E%3C/svg%3E");
}

.ad-link-url:hover {
    background: #ffffff;
    border-color: #0f172a;
    color: #0f172a !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.ad-link-url:hover::after {
    opacity: 1;
}

[data-theme="dark"] .ad-link-url:hover {
    background: #000;
    border-color: #fff;
    color: #fff !important;
}

/* Tabs Container */
.ad-tabs-container {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    margin-bottom: 32px;
}

[data-theme="dark"] .ad-tabs-container {
    background: #1e293b;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

/* Tabs */
.ad-tabs {
    display: flex;
    border-bottom: 1px solid #f1f5f9;
    overflow-x: auto;
    padding: 0 20px;
}

[data-theme="dark"] .ad-tabs {
    border-bottom: 1px solid #444;
}

.ad-tab {
    background: transparent;
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

[data-theme="dark"] .ad-tab {
    color: #aaa;
}

.ad-tab.active {
    color: #0088EA;
    border-bottom-color: #0088EA;
}

/* Tab Actions */
.ad-tab-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.ad-btn-icon {
    padding: 8px 16px;
    font-size: 14px;
}


/* Team Grid */
.ad-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

/* Player tab shares this grid but its cards hold more content — give them
   wider columns so batting/bowling styles don't cramp into 3 lines. */
.ad-team-grid:has(.player-card) {
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.player-card {
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
}

.ad-team-card {
    background-color: #ffffff;
    background-image: linear-gradient(135deg, rgba(0, 136, 234, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    background-size: cover;
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.03);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    max-width: 350px;
    width: 100%;
    margin: 0 auto;
}

.ad-team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.12);
    border-color: #3b82f6;
}

/* ===== Team card — Banner Top ===== */
.team-card-banner {
    height: 76px;
    background: linear-gradient(135deg, #ecf3ff3d, #dbe6fffa);
    position: relative;
}

.ad-team-avatar {
    position: absolute;
    left: 50%;
    bottom: -30px;
    transform: translateX(-50%);
    width: 78px;
    height: 78px;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    border: 3px solid #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.ad-team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card-body {
    padding: 42px 18px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.team-card-title {
    font-size: 17px;
    font-weight: 800;
    margin: 0 0 14px;
    color: #1a1a1a;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.team-card-footer {
    width: 100%;
    padding-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
    margin-top: auto;
}

.team-card-metaset {
    display: flex;
    gap: 18px;
    text-align: left;
}

.team-card-metaset > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.team-card-meta-label {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    font-weight: 600;
}

.team-card-meta-value {
    font-size: 15px;
    font-weight: 700;
    color: #333;
}

.team-card-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

[data-theme="dark"] .ad-team-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .ad-team-card:hover {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .team-card-title {
    color: #f8fafc;
}

[data-theme="dark"] .team-card-footer {
    border-top-color: rgba(148, 163, 184, 0.2);
}

[data-theme="dark"] .team-card-meta-value {
    color: #f8fafc;
}

[data-theme="dark"] .team-card-meta-label {
    color: #94a3b8;
}

.ad-team-actions {
    display: flex;
    gap: 8px;
}

.ad-team-info p {
    margin: 4px 0;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

[data-theme="dark"] .ad-team-info p {
    color: #ddd;
}

/* Simple Flat Button Styles */
.ad-premium-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    font-weight: 700;
    font-size: 14px;
    border-radius: 8px;
    border: 1px solid #3b82f6;
    cursor: pointer;
    background-color: #eff6ff;
    color: #1d4ed8;
    transition: all 0.3s ease;
    gap: 8px;
    box-shadow: none;
}

.ad-premium-btn:hover {
    background-color: #2563eb;
    border-color: #2563eb;
    color: #fff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
    transform: translateY(-1px);
}

.ad-premium-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.ad-premium-btn.px-wide {
    padding: 0 22px;
}

.ad-premium-btn.px-icon {
    padding: 0 14px;
}

.ad-premium-btn svg {
    z-index: 1;
}

.ad-premium-btn span {
    z-index: 1;
}

