/*
Theme Name: Fantasy Sports Child
Theme URI: https://tagdiv.com/newspaper-theme/
Description: Child theme for Fantasy Sports website based on Newspaper
Author: Your Name
Author URI: http://localhost/fantasy-sports
Template: Newspaper
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fantasy-sports-child
*/

/* Import Tailwind CSS */
@import 'https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css';

/* Custom Styles */
.fantasy-container {
    @apply max-w-7xl mx-auto px-4 sm:px-6 lg:px-8;
}

.team-card {
    @apply bg-white rounded-lg shadow-md p-6 mb-4;
    background-color: var(--td_theme_color, #4db2ec);
    color: #fff;
}

.team-card h1,
.team-card h2 {
    color: #fff;
    font-family: var(--td_font_header, 'Roboto', sans-serif);
    font-weight: 700;
}

.player-list {
    @apply grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4;
}

.player-card {
    @apply bg-white rounded-lg shadow p-4 cursor-move;
    background-color: #fff;
    color: #333;
    border: 1px solid var(--td_theme_color, #4db2ec);
}

.player-card h3 {
    color: var(--td_theme_color, #4db2ec);
    font-family: var(--td_font_header, 'Roboto', sans-serif);
    font-weight: 500;
}

.trade-proposal {
    @apply border border-gray-200 rounded-lg p-4 mb-4;
    background-color: #fff;
    border-color: var(--td_theme_color, #4db2ec);
}

.form-input {
    @apply mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500;
    border-color: var(--td_theme_color, #4db2ec);
}

.btn-primary {
    @apply inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white focus:outline-none focus:ring-2 focus:ring-offset-2;
    background-color: var(--td_theme_color, #4db2ec);
    border-color: var(--td_theme_color, #4db2ec);
}

.btn-primary:hover {
    background-color: var(--td_theme_color_hover, #3a9fd9);
    border-color: var(--td_theme_color_hover, #3a9fd9);
}

.btn-secondary {
    @apply inline-flex items-center px-4 py-2 border text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2;
    border-color: var(--td_theme_color, #4db2ec);
    color: var(--td_theme_color, #4db2ec);
}

.btn-secondary:hover {
    background-color: var(--td_theme_color, #4db2ec);
    color: #fff;
}

/* Notification styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 20px 30px;
    border-radius: 8px;
    z-index: 9999;
    font-family: var(--td_font_header, 'Roboto', sans-serif);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 16px;
    font-weight: 500;
    min-width: 300px;
    max-width: 400px;
    animation: slideIn 0.3s ease-out;
}

.notification.success {
    background-color: #4caf50;
    color: #fff;
    border-left: 4px solid #388e3c;
}

.notification.error {
    background-color: #f44336;
    color: #fff;
    border-left: 4px solid #d32f2f;
}

.notification.trade {
    background-color: #2196f3;
    color: #fff;
    border-left: 4px solid #1976d2;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Select2 customization */
.select2-container--default .select2-selection--multiple {
    border-color: var(--td_theme_color, #4db2ec);
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: var(--td_theme_color_hover, #3a9fd9);
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--td_theme_color, #4db2ec);
}

/* Confirmation Dialog */
.confirmation-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
}

.confirmation-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.confirmation-content p {
    margin: 0 0 25px 0;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
}

.confirmation-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.confirmation-buttons button {
    min-width: 100px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
} 