/* ===================================
   KOLKATA FF PRO TIPS
   Deep Analysis Prediction System
   =================================== */

/* ===================================
   MAIN WRAPPER
   =================================== */
.kff-protips-wrapper {
    width: 100%;
    margin: 20px auto;
    background: #fee2e2;
    /* light red background */
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

/* ===================================
   HEADER
   =================================== */
.protips-header {
    background: #ffe166;
    /* deep red */
    color: #000000;
    padding: 20px 30px;
    text-align: center;
}

.protips-date {
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #000000;
}

.protips-subtitle {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    color: #000000dd;
}

.ai-badge {
    display: inline-block;
    background: white;
    color: #4f3030;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
    margin-right: 6px;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

/* ===================================
   TABLE CONTAINER
   =================================== */
.protips-table-container {
    padding: 0;
    overflow-x: auto;
}

.protips-table {
    width: 100%;
    border-collapse: collapse;
    background: #fee2e2;
}

.protips-table thead {
    background: #000000;
}

.protips-table thead th {
    padding: 15px 20px;
    text-align: left;
    font-size: 14px;
    font-weight: 700;
    color: white;
    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 #4f3030;
    background: #f7a0a0;
}

.baji-row:last-child {
    border-bottom: none;
}

.baji-row td {
    padding: 18px 20px;
    font-size: 15px;
    color: black;
}

/* Active Baji (Next to play) */
.baji-row.active-baji {
    background: white;
    /* border-left: 5px solid #4f3030; */
}

/* ===================================
   BAJI LABEL
   =================================== */
.col-baji {
    font-weight: 700;
    color: black;
}

.baji-label {
    display: inline-block;
    margin-right: 1px;
}

.live-badge {
    display: inline-block;
    background: white;
    color: #4f3030;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===================================
   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: 38px;
    height: 38px;
    padding: 0 10px;
    background: white;
    border: 2px solid #4f3030;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #4f3030;
}

/* Matched Number */
.pred-num.matched {
    background: #77b255;
    border-color: #77b255;
    color: white;
    box-shadow: 0 4px 12px rgb(119 178 85);
}

/* Manual/VIP Predicted Number */
.pred-num.is-manual {
    background: #fffdf0;
    border-color: #d97706;
    color: #92400e;
    box-shadow: 0 0 8px rgba(217, 119, 6, 0.3);
    position: relative;
    overflow: hidden;
}

.pred-num.is-manual::after {
    content: 'VIP';
    position: absolute;
    top: -2px;
    right: -2px;
    background: #d97706;
    color: white;
    font-size: 7px;
    padding: 1px 3px;
    border-radius: 0 0 0 4px;
    font-weight: 900;
}

.pred-num.is-manual.matched {
    background: #e23939;
    border-color: #ffd700;
    color: white;
}

.match-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    background: #77b255;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 12px rgba(79, 48, 48, 0.4);
}

.no-data {
    color: #4f3030;
    font-size: 18px;
    font-weight: 600;
}

/* ===================================
   STATUS INDICATOR
   =================================== */
.col-status {
    text-align: center;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 5%;
}

.status-icon {
    font-size: 26px;
    line-height: 1;
}

/* Match Status */
.status-indicator.match {
    background: #ffffff;
    /* box-shadow: 0 4px 12px rgba(79, 48, 48, 0.4); */
}

.status-indicator.match .status-icon {
    color: white;
}

/* No Match Status */
.status-indicator.no-match {
    background: #fffdfd;
    /* border: 3px solid #4f3030; */
}

.status-indicator.no-match .status-icon {
    color: #4f3030;
}

/* Waiting Status */
.status-indicator.waiting {
    /* background: #bcffb6; */
    /* border: 2px solid #4f3030; */
}

.status-indicator.waiting .status-icon {
    color: #4f3030;
}

/* Tips waiting text styling */
.tips-waiting {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    padding: 4px 10px;
    background: #fffbeb;
    border: 1px dashed #d97706;
    border-radius: 6px;
}

/* ===================================
   FOOTER
   =================================== */
.protips-footer {
    padding: 10px 10px;
    background: #000000;
}

.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: #ffffff;
}

.legend-item .icon {
    font-size: 18px;
    font-weight: 700;
}

.legend-item .icon.green {
    color: white;
}

.legend-item .icon.red {
    color: white;
}

.legend-item .icon.gray {
    color: white;
}

.disclaimer {
    text-align: center;
    margin: 0;
    font-size: 17px;
    color: #ffffff;
    font-style: italic;
}

/* ===================================
   ROW STATUS STYLING
   =================================== */
.baji-row.match {
    background: white;
    /* border-left: 5px solid #4f3030; */
}

.baji-row.no-match {
    background: white;
    /* border-left: 5px solid #4f3030; */
}

.baji-row.waiting {
    background: #f8fafb;
}

/* ===================================
   MOBILE RESPONSIVE
   =================================== */

/* Tablets (768px and below) */
@media (max-width: 768px) {
    .kff-protips-wrapper {
        border-radius: 10px;
    }

    .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: 34px;
        height: 34px;
        font-size: 15px;
    }

    .match-indicator {
        min-width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .status-indicator {
        width: 42px;
        height: 42px;
    }

    .status-icon {
        font-size: 22px;
    }

    .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: 8px;
    }

    .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;
    }

    .baji-row td {
        padding: 12px;
        font-size: 13px;
    }

    .baji-label {
        display: block;
        margin-bottom: 1px;
    }

    .live-badge {
        font-size: 9px;
        padding: 3px 6px;
    }

    .prediction-numbers {
        gap: 4px;
    }

    .pred-num {
        min-width: 28px;
        height: 28px;
        font-size: 14px;
        padding: 0 8px;
    }

    .match-indicator {
        min-width: 28px;
        height: 28px;
        font-size: 13px;
    }

    .status-indicator {
        width: 38px;
        height: 38px;
    }

    .status-icon {
        font-size: 20px;
    }

    .legend {
        flex-direction: row;
        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;
    }

    .pred-num {
        min-width: 28px;
        height: 28px;
        font-size: 13px;
    }

    .status-indicator {
        width: 34px;
        height: 34px;
    }

    .status-icon {
        font-size: 18px;
    }
}

/* ===================================
   ANIMATIONS
   =================================== */

/* Waiting Animation - Pulse & Spin Effect */
.waiting-animation {
    display: inline-block;
    animation: pulse-spin-waiting 2s linear infinite;
}

@keyframes pulse-spin-waiting {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }

    50% {
        transform: scale(1.1) rotate(180deg);
        opacity: 0.7;
    }

    100% {
        transform: scale(1) rotate(360deg);
        opacity: 1;
    }
}

@keyframes pulse-waiting {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Matched Number Animation */
.pred-num.matched.animate-in {
    animation: matchPulse 0.6s ease-out;
}

@keyframes matchPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(79, 48, 48, 0.4);
    }

    50% {
        transform: scale(1.15);
        box-shadow: 0 6px 20px rgba(79, 48, 48, 0.6);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(79, 48, 48, 0.4);
    }
}

/* ===================================
   TIME COLUMN STYLING
   =================================== */
.col-time {
    font-size: 13px;
    color: #4f3030;
}

.time-info {
    display: flex;
    align-items: center;
    gap: 5px;
}

.time-close,
.time-result {
    font-weight: 600;
}

.time-separator {
    color: #888;
}

/* Adjust column widths for time column */
.protips-table thead th.col-baji {
    width: 20%;
}

.protips-table thead th.col-time {
    width: 20%;
}

.protips-table thead th.col-predictions {
    width: 45%;
}

.protips-table thead th.col-status {
    width: 15%;
    text-align: center;
}

/* Mobile responsive for time column */
@media (max-width: 768px) {
    .col-time {
        font-size: 11px;
    }

    .time-info {
        flex-direction: column;
        gap: 2px;
        align-items: flex-start;
    }

    .time-separator {
        display: none;
    }
}

@media (max-width: 480px) {
    .col-time {
        font-size: 10px;
    }

    .protips-table thead th.col-time {
        padding: 8px 5px;
    }
}