/* ===================================
   KOLKATA FF PRO TIPS
   Deep Analysis Prediction System
   =================================== */

/* ===================================
   MAIN WRAPPER
   =================================== */
.kff-protips-wrapper {
    width: 100%;
    max-width: 1000px;
    margin: 20px auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: fadeIn 0.5s ease-in-out;
}

/* ===================================
   HEADER
   =================================== */
.protips-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 20px 30px;
    text-align: center;
}

.protips-date {
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
    color: aliceblue;
}

.protips-subtitle {
    margin: 0;
    font-size: 15px;
    opacity: 0.9;
    font-weight: 500;
}

.ai-badge {
    display: inline-block;
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    margin-right: 6px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(139, 92, 246, 0.3);
    vertical-align: middle;
    animation: pulse-ai 2s infinite;
}

@keyframes pulse-ai {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }

    100% {
        opacity: 1;
    }
}

/* ===================================
   TABLE CONTAINER
   =================================== */
.protips-table-container {
    padding: 0;
    overflow-x: auto;
}

.protips-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.protips-table thead {
    background: #f8fafc;
    border-bottom: 2px solid #e5e7eb;
}

.protips-table thead th {
    padding: 15px 20px;
    text-align: left;
    font-size: 14px;
    font-weight: 700;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.protips-table thead th.col-baji {
    width: 25%;
}

.protips-table thead th.col-predictions {
    width: 60%;
}

.protips-table thead th.col-status {
    width: 15%;
    text-align: center;
}

/* ===================================
   TABLE ROWS
   =================================== */
.baji-row {
    border-bottom: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.baji-row:hover {
    background: #f9fafb;
}

.baji-row:last-child {
    border-bottom: none;
}

.baji-row td {
    padding: 18px 20px;
    font-size: 15px;
}

/* Active Baji (Next to play) */
.baji-row.active-baji {
    background: linear-gradient(90deg, #fef3c7 0%, #ffffff 100%);
    border-left: 4px solid #fbbf24;
}

/* ===================================
   BAJI LABEL
   =================================== */
.col-baji {
    font-weight: 600;
    color: #2c3e50;
    position: relative;
}

.baji-label {
    display: inline-block;
    margin-right: 8px;
}

.live-badge {
    display: inline-block;
    background: #fbbf24;
    color: #78350f;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* ===================================
   PREDICTION NUMBERS
   =================================== */
.prediction-numbers {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pred-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    background: #f3f4f6;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    color: #374151;
    transition: all 0.3s ease;
}

.pred-num:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Matched Number */
.pred-num.matched {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    border-color: #16a34a;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(74, 222, 128, 0.4);
    animation: match-pulse 0.6s ease;
}

@keyframes match-pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1.1);
    }
}



.wave-text {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: #16a34a;
    white-space: nowrap;
}

.wave-text span {
    display: inline-block;
    animation: waveWait 4s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.12s);
}

/* Wave → Pause → Repeat */
@keyframes waveWait {
    0% {
        transform: translateY(0);
        opacity: 0.5;
    }

    15% {
        transform: translateY(-6px);
        opacity: 1;
    }

    30% {
        transform: translateY(0);
        opacity: 0.5;
    }

    /* waiting pause */
    30%,
    100% {
        transform: translateY(0);
        opacity: 0.5;
    }
}




/* ===================================
   STATUS INDICATOR
   =================================== */
.col-status {
    text-align: center;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.status-icon {
    font-size: 24px;
    line-height: 1;
}

/* Match Status */
.status-indicator.match {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    box-shadow: 0 4px 12px rgba(74, 222, 128, 0.3);
}

.status-indicator.match .status-icon {
    color: white;
}

/* No Match Status */
.status-indicator.no-match {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.status-indicator.no-match .status-icon {
    color: white;
}

/* Waiting Status */
.status-indicator.waiting {
    background: #f3f4f6;
    border: 2px solid #d1d5db;
}

.status-indicator.waiting .status-icon {
    color: #9ca3af;
}

/* ===================================
   ROW STATUS STYLING
   =================================== */
.baji-row.match {
    background: linear-gradient(90deg, #f0fdf4 0%, #ffffff 100%);
    border-left: 4px solid #4ade80;
}

.baji-row.no-match {
    background: linear-gradient(90deg, #fef2f2 0%, #ffffff 100%);
    border-left: 4px solid #ef4444;
}

.baji-row.waiting {
    background: white;
}

/* Locked/Future Status */
.baji-row.locked,
.baji-row.future {
    background: #fdfdfd;
    color: #9ca3af;
}

.baji-row.locked .baji-label,
.baji-row.future .baji-label {
    opacity: 0.6;
}

/* ===================================
   FOOTER
   =================================== */
.protips-footer {
    padding: 20px 30px;
    background: #f8fafc;
    border-top: 2px solid #e5e7eb;
}

.legend {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.legend-item .icon {
    font-size: 18px;
    font-weight: 700;
}

.legend-item .icon.green {
    color: #4ade80;
}

.legend-item .icon.red {
    color: #ef4444;
}

.legend-item .icon.gray {
    color: #9ca3af;
}

.disclaimer {
    text-align: center;
    margin: 0;
    font-size: 12px;
    color: #6b7280;
    font-style: italic;
}

/* ===================================
   MOBILE RESPONSIVE
   =================================== */

/* Tablets (768px and below) */
@media (max-width: 768px) {
    .kff-protips-wrapper {
        border-radius: 8px;
    }

    .protips-header {
        padding: 15px 20px;
    }

    .protips-date {
        font-size: 24px;
    }

    .protips-subtitle {
        font-size: 13px;
    }

    .protips-table thead th {
        padding: 12px 15px;
        font-size: 12px;
    }

    .baji-row td {
        padding: 15px;
        font-size: 14px;
    }

    .pred-num {
        min-width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .status-icon {
        font-size: 20px;
    }

    .legend {
        gap: 15px;
    }

    .legend-item {
        font-size: 13px;
    }

    .protips-footer {
        padding: 15px 20px;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    .kff-protips-wrapper {
        border-radius: 6px;
    }

    .protips-header {
        padding: 12px 15px;
    }

    .protips-date {
        font-size: 20px;
    }

    .protips-subtitle {
        font-size: 12px;
    }

    .protips-table thead th {
        padding: 10px 12px;
        font-size: 11px;
    }

    .protips-table thead th.col-baji {
        width: 30%;
    }

    .protips-table thead th.col-predictions {
        width: 50%;
    }

    .protips-table thead th.col-status {
        width: 20%;
    }

    .baji-row td {
        padding: 12px;
        font-size: 13px;
    }

    .baji-label {
        display: block;
        margin-bottom: 4px;
        font-size: 13px;
    }

    .live-badge {
        font-size: 9px;
        padding: 2px 6px;
    }

    .prediction-numbers {
        gap: 6px;
    }

    .pred-num {
        min-width: 28px;
        height: 28px;
        font-size: 13px;
        padding: 0 6px;
    }

    .status-indicator {
        width: 36px;
        height: 36px;
    }

    .status-icon {
        font-size: 18px;
    }

    .legend {
        gap: 10px;
        align-items: center;
    }

    .legend-item {
        font-size: 12px;
    }

    .disclaimer {
        font-size: 11px;
    }

    .protips-footer {
        padding: 12px 15px;
    }
}

/* Extra Small Mobile (360px and below) */
@media (max-width: 360px) {
    .protips-date {
        font-size: 18px;
    }

    .protips-subtitle {
        font-size: 11px;
    }

    .protips-table thead th {
        padding: 8px 10px;
        font-size: 10px;
    }

    .baji-row td {
        padding: 10px;
        font-size: 12px;
    }

    .pred-num {
        min-width: 26px;
        height: 26px;
        font-size: 12px;
    }

    .status-icon {
        font-size: 16px;
    }
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   UNLOCK BUTTON
   =================================== */
.kff-unlock-btn {
    text-decoration: none;
    display: inline-block;
    background: linear-gradient(350deg, #0af59e 0%, #000000 100%);
    color: white !important;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 12px;
    box-shadow: 0 4px 15px rgba(225, 29, 72, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulse-unlock 2s infinite;
    position: relative;
    overflow: hidden;
}

.kff-unlock-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(225, 29, 72, 0.5);
    background: linear-gradient(135deg, #be123c 0%, #9f1239 100%);
    color: white;
}

.kff-unlock-btn:active {
    transform: translateY(1px);
}

@keyframes pulse-unlock {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 255, 126, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(225, 29, 72, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(225, 29, 72, 0);
    }
}

.baji-row.locked-user {
    background: linear-gradient(90deg, #fff1f2 0%, #ffffff 100%);
    border-left: 4px solid #e11d48;
}

.baji-row.locked-user .col-baji {
    color: #9f1239;
}

/* Blur overlay styles at end of file */

/* ===================================
   BLUR OVERLAY FOR LOCKED NEXT BAJI
   =================================== */
.baji-row.locked-blur .col-predictions {
    position: relative;
    min-height: 60px;
}

.blur-overlay-container {
    position: relative;
    width: 100%;
    min-height: 60px;
}

.blur-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    filter: blur(8px);
    opacity: 0.3;
    pointer-events: none;
}

.pred-num-blur {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    background: #f3f4f6;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    color: #374151;
}

.unlock-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
}

.baji-row.locked-blur {
    background: linear-gradient(90deg, #fff7ed 0%, #ffffff 100%);
    border-left: 4px solid #fb923c;
}

/* ===================================
   MOBILE RESPONSIVE - UNLOCK BUTTON
   =================================== */

/* Tablets (768px and below) */
@media (max-width: 768px) {
    .kff-unlock-btn {
        padding: 6px 16px;
        font-size: 11px;
        letter-spacing: 0.5px;
    }

    .blur-overlay-container {
        min-height: 50px;
    }

    .pred-num-blur {
        min-width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    .kff-unlock-btn {
        padding: 5px 12px;
        font-size: 10px;
        letter-spacing: 0.3px;
        border-radius: 15px;
    }

    .blur-overlay-container {
        min-height: 45px;
    }

    .pred-num-blur {
        min-width: 28px;
        height: 28px;
        font-size: 13px;
        padding: 0 6px;
    }

    .blur-content {
        gap: 6px;
    }

    .baji-row.locked-blur .col-predictions {
        min-height: 50px;
    }
}

/* Extra Small Mobile (360px and below) */
@media (max-width: 360px) {
    .kff-unlock-btn {
        padding: 4px 10px;
        font-size: 9px;
        letter-spacing: 0.2px;
        border-radius: 12px;
    }

    .pred-num-blur {
        min-width: 26px;
        height: 26px;
        font-size: 12px;
    }

    .blur-overlay-container {
        min-height: 40px;
    }
}