/* File: public/css/pp-league-box-component.css */

/* --- Match Card --- */
.match-card {
    background-color: #00345e;
    border: 1px solid #0e4c81;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    color: white;
    flex: 0 1 320px;
    position: relative;
}

/* --- Header Section --- */
.match-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 35px;
}

.match-card-datetime {
    text-align: right; 
    font-size: 0.75em;
    color: #a0c8f0;
    line-height: 1.3;
}
.match-card-datetime .match-time {
    font-weight: bold;
    font-size: 1.1em;
}
.match-card-datetime .match-date {
    opacity: 0.8;
}
.match-details-btn {
    font-size: 0.8em;
    color: #a0c8f0;
    text-decoration: none !important;
    border: 1px solid #0e4c81;
    padding: 3px 8px;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
}
.match-details-btn:hover {
    background-color: #0e4c81;
    color: #fff;
    text-decoration: none !important;
}

/* (تغییر) استایل خط جداکننده برای تمام عرض شدن */
.card-header-separator {
    display: block;
    border: 0;
    height: 1px;
    background-color: #0e4c81;
    margin: 10px -10px; /* مارجین بالا/پایین برای فاصله، مارجین چپ/راست منفی برای پوشش کامل عرض */
}

.match-main-info {
    display: flex;
    align-items: center;
    width: 100%;
}
.team {
    text-align: center;
    flex: 1;
}
.team-logo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}
.team-name {
    font-size: 0.9em;
    margin-top: 5px;
    min-height: 2.5em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.match-vs {
    font-size: 1.2em;
    font-weight: bold;
    color: #0e4c81;
    padding: 0 15px;
}

/* --- بخش پیش‌بینی --- */
.match-prediction-area {
    padding-top: 25px; 
    margin-top: 10px;
    width: 100%;
    border-top: 1px solid #0e4c81;
    position: relative; 
}
.match-prediction-area .match-vs {
    position: absolute;
    top: -14px; 
    left: 50%;
    transform: translateX(-50%);
    background: #00345e; 
    padding: 0 10px;
    color: #a0c8f0;
    font-size: 1em;
}

/* ... بقیه استایل‌ها بدون تغییر باقی می‌مانند ... */
.placeholder-text {
    text-align: center;
    color: #ccc;
    font-size: 0.9em;
    line-height: 1.5;
}
.placeholder-text small {
    font-size: 0.85em;
    color: #a0c8f0;
    display: block;
    margin-top: 4px;
}
.prediction-form-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px; 
}
.prediction-inputs-wrapper {
    display: flex;
    justify-content: space-around; 
    width: 100%;
}
.prediction-form-layout .home-prediction-input,
.prediction-form-layout .away-prediction-input {
    width: 90px;
    text-align: center;
    background: #0a2445;
    color: white;
    border: 1px solid #0e4c81;
    border-radius: 4px;
    padding: 5px;
    -moz-appearance: textfield;
}
.prediction-form-layout .home-prediction-input::placeholder,
.prediction-form-layout .away-prediction-input::placeholder {
    color: #5a7a9c;
    font-weight: bold;
}
.prediction-form-layout .home-prediction-input::-webkit-outer-spin-button,
.prediction-form-layout .home-prediction-input::-webkit-inner-spin-button,
.prediction-form-layout .away-prediction-input::-webkit-outer-spin-button,
.prediction-form-layout .away-prediction-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.predict-press-league-box .submit-prediction-btn {
    background-color: #007cbe;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    width: auto;
    box-shadow: none;
    transition: background-color 0.2s;
}
.predict-press-league-box .submit-prediction-btn:hover,
.predict-press-league-box .submit-prediction-btn:focus {
    background-color: #0095e6;
}
.predict-press-league-box .login-to-predict-btn {
    display: block;
    text-align: center;
    background-color: #007cbe;
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
}
.predict-press-league-box .login-to-predict-btn:hover,
.predict-press-league-box .login-to-predict-btn:focus {
    background-color: #0095e6;
}
.prediction-deadline-notice {
    font-size: 0.8em;
    color: #a0c8f0;
    text-align: center;
    margin-top: 8px;
    opacity: 0.9;
}
.match-result-area {
    margin-top: 10px;
    padding-top: 10px;
    border-top: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
    color: #cde4ff;
}
.final-result, .user-points {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #00294e;
    padding: 5px 10px;
    border-radius: 4px;
}
.final-result {
    flex-grow: 1;
    margin-left: 5px;
}
.user-points {
    min-width: 90px;
    margin-right: 5px;
}
.final-result span, .user-points span {
    font-size: 0.8em;
    opacity: 0.8;
}
.final-result strong, .user-points strong {
    font-size: 1.1em;
    font-weight: bold;
    color: #fff;
}
.user-points strong {
    color: #8bc34a;
}
.prediction-form-layout.is-disabled .prediction-inputs-wrapper {
    opacity: 0.7;
}