/* /css/draft-lottery.css */

.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

    .page-header h2 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .page-header p {
        color: #555;
        transition: color 0.3s;
    }

.quick-links-container {
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.quick-link-btn {
    background-color: #fff;
    color: #333;
    border: 1px solid #ddd;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

    .quick-link-btn:hover {
        background-color: #f8f9fa;
        border-color: #ccc;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }

.lottery-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
    width: 100%;
    max-width: 960px;
    margin: 0 auto 2rem auto;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.lottery-header {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lottery-card-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
}

.button-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.action-button {
    border: none;
    color: white;
    font-weight: bold;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

    .action-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    }

    .action-button:active {
        transform: translateY(0);
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .action-button:disabled {
        background-color: #999;
        cursor: not-allowed;
        transform: none;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

#simulateBtn {
    background-color: #2563eb;
}

    #simulateBtn:hover:not(:disabled) {
        background-color: #1d4ed8;
    }

#simulateAgainBtn {
    background-color: #16a34a;
}

    #simulateAgainBtn:hover {
        background-color: #15803d;
    }

#resetBtn {
    background-color: #6b7280;
}

    #resetBtn:hover {
        background-color: #4b5563;
    }

.table-container {
    overflow-x: auto;
}

.lottery-table {
    width: 100%;
    border-collapse: collapse;
}

    .lottery-table th, .lottery-table td {
        text-align: left;
        padding: 1rem 1.25rem;
        border-bottom: 1px solid #eee;
        transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    }

    .lottery-table th {
        background-color: #f8f9fa;
        text-transform: uppercase;
        font-size: 0.8rem;
        color: #444;
    }

    .lottery-table td {
        color: #333;
    }

    .lottery-table tr:hover {
        background-color: #f8f9fa;
    }

    .lottery-table .text-center {
        text-align: center;
    }

.team-cell {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #111827;
    text-decoration: none;
    transition: color 0.3s;
}

    .team-cell:hover {
        color: #2563eb;
    }

.team-cell-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.team-cell .font-semibold {
    font-weight: 600;
}

.team-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

.original-team-traded {
    opacity: 0.6;
    text-decoration: line-through;
}

.move-up {
    color: #16a34a;
    font-weight: 600;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.move-down {
    color: #dc2626;
    font-weight: 600;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hidden-mobile {
    display: table-cell;
}

/* Dark Mode Styles */
.dark-mode .page-header p {
    color: #aaa;
}

.dark-mode .quick-link-btn {
    background-color: #2c2c2c;
    color: #e0e0e0;
    border-color: #444;
}

    .dark-mode .quick-link-btn:hover {
        background-color: #383838;
        border-color: #666;
    }

.dark-mode .lottery-container {
    background-color: #1e1e1e;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.dark-mode .lottery-table th, .dark-mode .lottery-table td {
    border-bottom-color: #333;
}

.dark-mode .lottery-table th {
    background-color: #2c2c2c;
    color: #bbb;
}

.dark-mode .lottery-table td {
    color: #e0e0e0;
}

.dark-mode .lottery-table tr:hover {
    background-color: #2c2c2c;
}

.dark-mode .team-cell {
    color: #e0e0e0;
}

    .dark-mode .team-cell:hover {
        color: #8ab4f8;
    }

.dark-mode .move-up {
    color: #66bb6a;
}

.dark-mode .move-down {
    color: #ef5350;
}

.dark-mode #simulateBtn {
    background-color: #3b82f6;
}

    .dark-mode #simulateBtn:hover:not(:disabled) {
        background-color: #60a5fa;
    }

.dark-mode #simulateAgainBtn {
    background-color: #22c55e;
}

    .dark-mode #simulateAgainBtn:hover {
        background-color: #4ade80;
    }

.dark-mode #resetBtn {
    background-color: #9ca3af;
}

    .dark-mode #resetBtn:hover {
        background-color: #d1d5db;
    }

.dark-mode .action-button:disabled {
    background-color: #4b5563;
}

/* Responsive Styles */
@media (min-width: 640px) { /* sm breakpoint */
    .lottery-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .button-container {
        flex-direction: row;
    }
}

@media (max-width: 768px) { /* md breakpoint */
    .hidden-mobile {
        display: none;
    }

    .lottery-table th, .lottery-table td {
        padding: 0.8rem 0.6rem;
    }
}

@media (max-width: 600px) {
    main {
        padding: 1rem;
    }
}