/* ============================================================
   FIFA 2026 World Cup Promo — Styles
   Plugin: wc-fifa26-promo
   ============================================================ */

/* ---- Variables ---- */
:root {
    --fifa-red:    #cd1900;
    --fifa-dark:   #8b0f00;
    --fifa-gold:   #f5c518;
    --fifa-white:  #ffffff;
    --fifa-shadow: rgba(0,0,0,0.35);
}

/* ============================================================
   TOP BAR
   ============================================================ */

#fifa26-topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 99999;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a0500 0%, #cd1900 40%, #8b0f00 70%, #1a0500 100%);
    background-size: 200% 100%;
    animation: fifa-bar-gradient 6s ease infinite;
    box-shadow: 0 4px 24px rgba(205,25,0,0.5);
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.4s ease;
}

#fifa26-topbar.fifa-hidden {
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
}

.fifa26-flag {
    width:20px;
    height:14px;
    object-fit:cover;
    vertical-align:middle;
    margin:0 4px;
    
}

.fifa26-sub-flags {
    max-width: 45%;
     font-size: 2.8rem;
    margin-left: 0;
    margin-right: 0;
     font-size: 2.8rem;
    margin-bottom: 24px;
    display: flex;
   
}

/* Animated gradient background */
@keyframes fifa-bar-gradient {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Football pattern overlay */
#fifa26-topbar::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../img/topbar-bg.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.18;
    pointer-events: none;
}

/* Shimmer sweep animation */
#fifa26-topbar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255,255,255,0.08) 50%,
        transparent 100%
    );
    animation: fifa-shimmer 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes fifa-shimmer {
    0%   { left: -60%; }
    100% { left: 110%; }
}

/* Inner wrapper */
.fifa26-bar-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 1300px;
    padding: 0 60px 0 20px;
    box-sizing: border-box;
}

/* Emoji trophy / flag block */
.fifa26-bar-emoji {
    font-size: 2rem;
    flex-shrink: 0;
    line-height: 1;
    filter: drop-shadow(0 0 8px rgba(245,197,24,0.6));
    animation: fifa-pulse 2s ease-in-out infinite;
}

@keyframes fifa-pulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.12); }
}

/* Text block */
.fifa26-bar-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    flex-shrink: 0;
}

.fifa26-bar-headline {
    color: var(--fifa-gold);
    font-family: 'Impact', 'Arial Black', sans-serif;
    font-size: 1.05rem; 
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    white-space: nowrap;
}

.fifa26-bar-sub {
    color: rgba(255,255,255,0.9);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* Coupon badge */
.fifa26-bar-coupon {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0,0,0,0.35);
    border: 2px dashed var(--fifa-gold);
    border-radius: 8px;
    padding: 6px 16px;
    flex-shrink: 0;
    backdrop-filter: blur(4px);
}

.fifa26-bar-coupon-label {
    color: rgba(255,255,255,0.7);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 2px;
}

.fifa26-bar-coupon-code {
    color: var(--fifa-gold);
    font-family: 'Courier New', monospace;
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-shadow: 0 0 12px rgba(245,197,24,0.7);
}

.fifa26-bar-coupon-discount {
    color: var(--fifa-white);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 1px;
}

/* Divider */
.fifa26-bar-divider {
    width: 1px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    flex-shrink: 0;
}

/* Countdown timer */
.fifa26-bar-timer {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.fifa26-timer-label {
    color: rgba(255,255,255,0.65);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 4px;
    white-space: nowrap;
}

.fifa26-timer-units {
    display: flex;
    gap: 6px;
    align-items: flex-end;
}

.fifa26-timer-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}

.fifa26-timer-digit {
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 4px;
    color: var(--fifa-white);
    font-family: 'Courier New', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    min-width: 40px;
    text-align: center;
    padding: 3px 4px;
    line-height: 1;
    backdrop-filter: blur(4px);
}

.fifa26-timer-name {
    color: rgba(255,255,255,0.5);
    font-size: 0.52rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.fifa26-timer-sep {
    color: var(--fifa-gold);
    font-size: 1.1rem;
    font-weight: 700;
    padding-bottom: 6px;
}

/* CTA button */
.fifa26-bar-cta {
    display: inline-block;
    background: var(--fifa-gold);
    color: #1a0500 !important;
    font-weight: 900;
    font-size: 0.8rem;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 9px 18px;
    border-radius: 6px;
    flex-shrink: 0;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(245,197,24,0.4);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.fifa26-bar-cta:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 8px 24px rgba(245,197,24,0.55);
    background: #ffd700 !important;
    color: #1a0500 !important;
}

/* Close button */
#fifa26-topbar-close {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    color: rgba(255,255,255,0.75);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    z-index: 3;
    flex-shrink: 0;
}

#fifa26-topbar-close:hover {
    background: rgba(255,255,255,0.15);
    color: var(--fifa-white);
    transform: translateY(-50%) scale(1.1) rotate(90deg);
}

/* Push page content down */
body.fifa26-bar-active {
    margin-top: 100px !important;
    padding-top: 0 !important;
    transition: margin-top 0.4s cubic-bezier(0.4,0,0.2,1);
}

body.fifa26-bar-active.fifa26-bar-closing {
    margin-top: 0 !important;
}

.fifa26-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
}

.fifa26-modal.active {
    display: flex;
}

.fifa26-modal-overlay {
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.75);
}

.fifa26-modal-container {
    position:relative;
    z-index:2;
    max-width:680px;
    width:90%;
}

.fifa26-modal-close {
    position:absolute;
    right:15px;
    top:15px;
    z-index:3;
}

/* ============================================================
   RESPONSIVE — TOPBAR
   ============================================================ */

@media (max-width: 1024px) {
    .fifa26-bar-divider:last-of-type { display: none; }
    .fifa26-bar-cta { display: none; }
}

@media (max-width: 768px) {
    #fifa26-topbar { height: 80px; }
    body.fifa26-bar-active { margin-top: 80px !important; }

    .fifa26-bar-inner { gap: 10px; padding: 0 48px 0 12px; }
    .fifa26-bar-emoji { font-size: 1.5rem; }
    .fifa26-bar-headline { font-size: 0.82rem; }
    .fifa26-bar-sub { font-size: 0.7rem; }
    .fifa26-timer-digit { font-size: 1rem; min-width: 30px; }
    .fifa26-bar-coupon { padding: 4px 10px; display: none;}
    .fifa26-bar-coupon-code { font-size: 1rem; }
    .fifa26-bar-divider { height: 44px; }
}

@media (max-width: 500px) {
    .fifa26-bar-sub { display: none; }
    .fifa26-bar-divider:first-of-type { display: none; }
    .fifa26-bar-emoji { display: none; }
    .fifa26-timer-label { font-size: 0.52rem; }
    .fifa26-bar-headline {max-width: 250px;}
}

/* ============================================================
   SUBSCRIBE BLOCK
   ============================================================ */

.fifa26-subscribe-wrap {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(135deg, #0d1b2a 0%, #1a0500 50%, #0d1b2a 100%);
    padding: 48px 40px;
    text-align: center;
    box-shadow:
        0 20px 60px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.06);
    max-width: 640px;
    margin: 0 auto;
}

/* Background image */
.fifa26-subscribe-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../img/subscribe-bg.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    pointer-events: none;
    border-radius: inherit;
}

/* Glowing border */
.fifa26-subscribe-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1.5px solid rgba(205,25,0,0.4);
    pointer-events: none;
    box-shadow: inset 0 0 40px rgba(205,25,0,0.1);
}

.fifa26-sub-inner {
    position: relative;
    z-index: 2;
}

/* Badge */
.fifa26-sub-badge {
    display: inline-block;
    background: var(--fifa-red);
    color: var(--fifa-white);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    padding: 5px 16px;
    border-radius: 20px;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(205,25,0,0.45);
}

/* Title */
.fifa26-sub-title {
    color: var(--fifa-white);
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.15;
    margin: 0 0 8px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.fifa26-sub-title span {
    color: var(--fifa-gold);
}

/* Subtitle */
.fifa26-sub-subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 28px;
}
 
/* Form */
.fifa26-sub-form {
    display: flex;
    gap: 10px;
    max-width: 440px;
    margin: 0 auto 20px;
}

.fifa26-sub-input {
    flex: 1;
    background: rgba(255,255,255,0.08);
    border: 1.5px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    color: var(--fifa-white) !important;
    font-size: 0.95rem;
    padding: 13px 16px;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    backdrop-filter: blur(6px);
}

.fifa26-sub-input::placeholder {
    color: rgba(255,255,255,0.4);
}

.fifa26-sub-input:focus {
    border-color: var(--fifa-gold);
    background: rgba(255,255,255,0.12);
    box-shadow: 0 0 0 3px rgba(245,197,24,0.15);
}

.fifa26-sub-btn {
    background: linear-gradient(135deg, var(--fifa-red), var(--fifa-dark));
    color: var(--fifa-white) !important;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 13px 22px;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 6px 20px rgba(205,25,0,0.45);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
    overflow: hidden;
}

.fifa26-sub-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    pointer-events: none;
}

.fifa26-sub-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(205,25,0,0.55);
}

.fifa26-sub-btn:active {
    transform: translateY(0);
}

.fifa26-sub-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* Privacy note */
.fifa26-sub-privacy {
    color: rgba(255,255,255,0.35);
    font-size: 0.72rem;
    margin: 0;
    line-height: 1.5;
}

/* Error message */
.fifa26-sub-error {
    background: rgba(220,53,69,0.15);
    border: 1px solid rgba(220,53,69,0.4);
    border-radius: 6px;
    color: #ff8888;
    font-size: 0.85rem;
    padding: 10px 14px;
    margin-top: 12px;
    display: none;
}

/* SUCCESS STATE — Coupon reveal */
.fifa26-sub-success {
    display: none;
    animation: fifa-reveal 0.6s cubic-bezier(0.175,0.885,0.32,1.275) forwards;
}

@keyframes fifa-reveal {
    from { opacity: 0; transform: scale(0.85) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.fifa26-coupon-reveal {
    background: rgba(0,0,0,0.4);
    border: 2px dashed var(--fifa-gold);
    border-radius: 14px;
    padding: 28px 32px;
    margin-top: 8px;
    backdrop-filter: blur(8px);
}

.fifa26-coupon-reveal-label {
    color: rgba(255,255,255,0.7);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 12px;
}

.fifa26-coupon-reveal-code {
    display: inline-block;
    background: linear-gradient(135deg, var(--fifa-red), var(--fifa-dark));
    color: var(--fifa-white);
    font-family: 'Courier New', monospace;
    font-size: 2.4rem;
    font-weight: 900;
    letter-spacing: 0.25em;
    padding: 12px 32px;
    border-radius: 8px;
    margin-bottom: 12px;
    box-shadow:
        0 0 0 3px rgba(245,197,24,0.5),
        0 8px 32px rgba(205,25,0,0.4);
    cursor: pointer;
    transition: transform 0.15s ease;
    user-select: all;
}

.fifa26-coupon-reveal-code:hover {
    transform: scale(1.03);
}

.fifa26-coupon-reveal-note {
    color: var(--fifa-gold);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.fifa26-coupon-reveal-sub {
    color: rgba(255,255,255,0.5);
    font-size: 0.72rem;
}

.fifa26-success-msg {
    color: rgba(255,255,255,0.85);
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.fifa26-success-msg strong {
    color: var(--fifa-gold);
}

/* Copy tooltip */
.fifa26-copy-hint {
    display: block;
    color: rgba(255,255,255,0.4);
    font-size: 0.68rem;
    margin-top: 6px;
    letter-spacing: 0.05em;
}

/* Confetti particles (CSS only) */
.fifa26-confetti-dot {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: fifa-confetti-fall linear forwards;
    opacity: 0;
}

@keyframes fifa-confetti-fall {
    0%   { opacity: 1; transform: translateY(-20px) rotate(0deg); }
    100% { opacity: 0; transform: translateY(160px) rotate(360deg); }
}

/* ============================================================
   RESPONSIVE — SUBSCRIBE BLOCK
   ============================================================ */

@media (max-width: 640px) {
    .fifa26-subscribe-wrap { padding: 32px 20px; }
    .fifa26-sub-title { font-size: 1.5rem; }
    .fifa26-sub-form { flex-direction: column; }
    .fifa26-sub-btn { width: 100%; }
    .fifa26-coupon-reveal-code { font-size: 1.8rem; padding: 10px 20px; }
}
