/* ====================================================
   📊 Year in Review - Spotify Wrapped Style
   ==================================================== */

.tc-wrapped-page {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    overflow: hidden;
    font-family: "Cairo", sans-serif;
}

.tc-wrapped-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #fff;
    background: linear-gradient(135deg, #0e1116 0%, #2d3561 100%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.tc-wrapped-slide.active {
    opacity: 1;
    visibility: visible;
}

.tc-wrapped-content {
    max-width: 600px;
    text-align: center;
    animation: tc-wrap-up 0.8s ease-out;
}

@keyframes tc-wrap-up {
    from {
        opacity: 0;
        transform: translateY(60px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.tc-wrapped-content h1, .tc-wrapped-content h2 {
    font-size: 42px;
    margin: 0 0 20px;
    font-weight: 900;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.tc-wrapped-content p {
    font-size: 20px;
    line-height: 1.6;
    margin: 12px 0;
    opacity: 0.95;
}

.tc-wrapped-year {
    font-size: 88px;
    font-weight: 900;
    background: linear-gradient(135deg, #FFA836, #ff5722);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 20px;
    animation: tc-wrap-pulse 2s ease-in-out infinite;
}

@keyframes tc-wrap-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.tc-wrapped-emoji {
    font-size: 100px;
    margin-bottom: 20px;
    line-height: 1;
    animation: tc-wrap-float 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.4));
}

@keyframes tc-wrap-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.tc-wrapped-big-number {
    font-size: 140px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 15px;
    text-shadow: 0 10px 40px rgba(0,0,0,0.5);
    animation: tc-wrap-count 1.5s ease-out;
}

@keyframes tc-wrap-count {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.tc-wrapped-highlight {
    font-size: 56px;
    font-weight: 900;
    margin: 20px 0;
    padding: 15px 30px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    display: inline-block;
    border: 2px solid rgba(255,255,255,0.2);
    animation: tc-wrap-pop 0.6s ease-out;
}

@keyframes tc-wrap-pop {
    0% { transform: scale(0.8) rotate(-5deg); opacity: 0; }
    100% { transform: scale(1) rotate(0); opacity: 1; }
}

.tc-wrapped-user {
    font-size: 24px !important;
    color: rgba(255,255,255,0.85);
}

/* تفاصيل الإحصاءات */
.tc-wrapped-breakdown {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.tc-wrapped-breakdown > div {
    background: rgba(0,0,0,0.3);
    padding: 20px 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    min-width: 100px;
}

.tc-wrapped-breakdown strong {
    font-size: 36px;
    display: block;
    color: #FFA836;
}

.tc-wrapped-breakdown span {
    font-size: 14px;
    opacity: 0.8;
}

/* قائمة المرتبة */
.tc-wrapped-list {
    margin-top: 30px;
    background: rgba(0,0,0,0.25);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.tc-wrapped-list p {
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}

.tc-wrapped-rank-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 15px;
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    margin-bottom: 8px;
    font-size: 16px;
}

.tc-wrapped-rank-item span:first-child {
    font-weight: 900;
    font-size: 20px;
    color: #FFA836;
    min-width: 30px;
}

.tc-wrapped-rank-item strong {
    flex: 1;
    text-align: right;
}

.tc-wrapped-count {
    background: rgba(255,255,255,0.15);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

.tc-wrapped-fun {
    font-size: 16px !important;
    margin-top: 15px !important;
    opacity: 0.75 !important;
    font-style: italic;
}

.tc-wrapped-poster {
    max-width: 180px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    margin: 15px 0;
}

/* الأزرار */
.tc-wrapped-start {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 16px 36px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s;
    margin-top: 25px;
}

.tc-wrapped-start:hover {
    background: #FFA836;
    color: #000;
    border-color: #FFA836;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255,168,54,0.4);
}

/* الـ Slide النهائي */
.tc-wrapped-final {
    flex-direction: column;
}

.tc-wrapped-share {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 25px;
}

.tc-share-btn {
    background: #fff;
    color: #000;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    color: #fff;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tc-share-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* التنقل */
.tc-wrapped-nav {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(15px);
    padding: 12px 25px;
    border-radius: 50px;
    z-index: 999;
}

.tc-wrapped-prev, .tc-wrapped-next {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    font-weight: 700;
    transition: 0.3s;
}

.tc-wrapped-prev:hover, .tc-wrapped-next:hover {
    background: #FFA836;
    color: #000;
}

.tc-wrapped-dots {
    display: flex;
    gap: 8px;
}

.tc-wrapped-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: 0.3s;
}

.tc-wrapped-dot.active {
    background: #FFA836;
    width: 24px;
    border-radius: 5px;
}

/* Widget زر */
.tc-wrapped-widget-btn {
    display: inline-block;
    background: linear-gradient(135deg, #FFA836, #ff5722);
    color: #fff !important;
    padding: 14px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: 0.3s;
    box-shadow: 0 8px 20px rgba(255,168,54,0.3);
}

.tc-wrapped-widget-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(255,168,54,0.5);
}

/* Empty state */
.tc-wrapped-empty .tc-wrapped-emoji {
    font-size: 120px;
}

/* Responsive */
@media (max-width: 768px) {
    .tc-wrapped-content h1, .tc-wrapped-content h2 { font-size: 28px; }
    .tc-wrapped-year { font-size: 64px; }
    .tc-wrapped-big-number { font-size: 100px; }
    .tc-wrapped-highlight { font-size: 32px; padding: 12px 20px; }
    .tc-wrapped-emoji { font-size: 70px; }
    .tc-wrapped-content p { font-size: 16px; }
    .tc-wrapped-breakdown { gap: 12px; }
    .tc-wrapped-breakdown > div { padding: 12px 18px; }
    .tc-wrapped-breakdown strong { font-size: 24px; }
    .tc-wrapped-poster { max-width: 130px; }
}
