/**
 * DFS Page Specific Styles
 */

.main-content {
    flex: 1;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    min-height: calc(100vh - 100px);
}

.upgrade-banner {
    background: linear-gradient(135deg, #b8efc0 0%, #9fceaa 100%);
    border-radius: 12px;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(184, 239, 192, 0.3);
}

.upgrade-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #2a2a2a;
}

.lock-icon-banner {
    width: 24px;
    height: 24px;
    stroke: #2a2a2a;
}

.upgrade-banner-text {
    font-size: 18px;
    font-weight: 600;
    color: #2a2a2a;
}

.upgrade-banner-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #2a2a2a;
    color: #b8efc0;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.upgrade-banner-btn:hover {
    background: #1f1f1f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.upgrade-banner-btn .btn-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.page-header {
    text-align: center;
    margin-bottom: 30px;
}

.page-title {
    font-size: 36px;
    font-weight: 300;
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 18px;
    color: #aaa;
    margin-bottom: 20px;
}

.site-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 999px;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.site-badge-dk {
    background: rgba(184, 239, 192, 0.12);
    color: #b8efc0;
}

.site-badge-fd {
    background: rgba(94, 176, 255, 0.15);
    color: #5eb0ff;
}

.platform-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.platform-btn {
    padding: 10px 20px;
    background-color: #444;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.platform-btn:hover {
    background-color: #555;
}

.platform-btn.active {
    background-color: #b8efc0;
    color: #2a2a2a;
}

.controls-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.control-group.positions {
    flex: 1;
}

.control-group.slate-selector {
    min-width: 250px;
}

.control-label {
    font-size: 14px;
    color: #aaa;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.button-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.slate-dropdown {
    padding: 12px 16px;
    background: linear-gradient(135deg, #3a3a3a 0%, #2d2d2d 100%);
    color: white;
    border: 1px solid #555;
    border-radius: 8px;
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    width: 100%;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23b8efc0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
}

.slate-dropdown:hover {
    background: linear-gradient(135deg, #444 0%, #333 100%);
    border-color: #666;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.slate-dropdown:focus {
    outline: none;
    border-color: #b8efc0;
    box-shadow: 0 0 0 3px rgba(184, 239, 192, 0.15);
}

.slate-dropdown option {
    background-color: #2a2a2a;
    color: white;
    padding: 10px;
}

.control-btn {
    padding: 10px 20px;
    background-color: #444;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.control-btn:hover {
    background-color: #555;
}

.control-btn.active {
    background-color: #b8efc0;
    color: #2a2a2a;
}

.slate-btn {
    font-size: 13px;
    padding: 8px 16px;
}

.rankings-table {
    background-color: #333;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.table-header {
    background-color: #b8efc0;
    color: #2a2a2a;
    padding: 15px;
    display: grid;
    grid-template-columns: 65px 2fr 100px 100px 120px 100px;
    gap: 15px;
    font-weight: 600;
}

.table-row {
    padding: 15px;
    display: grid;
    grid-template-columns: 65px 2fr 100px 100px 120px 100px;
    gap: 15px;
    border-bottom: 1px solid #444;
    transition: background-color 0.2s ease;
}

.table-row:hover {
    background-color: #3a3a3a;
}

.table-row:last-child {
    border-bottom: none;
}

.table-row.locked {
    opacity: 0.6;
    position: relative;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.table-row.locked:hover {
    opacity: 0.75;
    transform: scale(1.01);
}

.table-row.locked .player-name,
.table-row.locked .player-meta,
.table-row.locked .stat-value,
.table-row.locked .value-score {
    filter: blur(8px);
    user-select: none;
}

.lock-overlay {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 8px;
    color: #b8efc0;
    font-weight: 600;
    font-size: 14px;
    pointer-events: none;
}

.lock-icon {
    width: 20px;
    height: 20px;
    stroke: #b8efc0;
    fill: none;
}

.rank {
    font-weight: 600;
    color: #b8efc0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.player-image {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #444;
    border: 2px solid #555;
}

.player-image.error {
    display: none;
}

.player-image-default {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #666;
}

.player-image-default svg {
    width: 18px;
    height: 18px;
    fill: #888;
}

.player-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.player-name {
    font-weight: 500;
    color: white;
}

.player-meta {
    font-size: 13px;
    color: #aaa;
}

.stat-value {
    font-weight: 500;
}

.value-score {
    font-weight: 600;
    color: #4CAF50;
    font-size: 16px;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #aaa;
}

.error {
    text-align: center;
    padding: 40px;
    color: #f44336;
}

@media (max-width: 768px) {
    .main-content {
        padding: 15px;
        min-height: calc(100vh - 200px);
    }

    .upgrade-banner {
        flex-direction: column;
        gap: 15px;
        padding: 18px 20px;
        text-align: center;
    }

    .upgrade-banner-text {
        font-size: 16px;
    }

    .upgrade-banner-btn {
        width: 100%;
        justify-content: center;
    }

    .page-title {
        font-size: 28px;
    }

    .controls-container {
        flex-direction: column;
    }

    .control-group.slate-selector {
        min-width: unset;
    }

    .table-header,
    .table-row {
        grid-template-columns: 60px 1fr 80px 80px;
        gap: 10px;
        font-size: 13px;
    }

    .player-image {
        width: 28px;
        height: 28px;
    }

    .player-image-default {
        width: 28px;
        height: 28px;
    }

    .player-image-default svg {
        width: 16px;
        height: 16px;
    }

    .table-header .hide-mobile,
    .table-row .hide-mobile {
        display: none;
    }

    .button-group {
        gap: 8px;
    }

    .control-btn {
        padding: 8px 14px;
        font-size: 13px;
    }
}
