/*
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;
    }
}

/* Homepage Specific Styles */
.homepage-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.homepage-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

/* Hide unwanted elements on homepage */
.home .td-header-menu,
.home .td-header-top-menu,
.home .td-crumb-container,
.home .td-main-sidebar,
.home .td-post-author-name,
.home .td-post-date,
.home .td-post-views,
.home .td-post-category,
.home .td-post-comments,
.home .td-post-views,
.home .td-post-source,
.home .td-post-author,
.home .td-post-time,
.home .td-post-views,
.home .td-post-category,
.home .td-post-comments,
.home .td-post-source,
.home .td-post-author,
.home .td-post-time {
    display: none !important;
}

/* Homepage navigation hiding */
.home .td-header-menu,
.home .td-header-top-menu,
.home .td-crumb-container {
    display: none !important;
}

/* Ensure full width on homepage */
.home .td-main-content-wrap {
    max-width: none !important;
    width: 100% !important;
}

.home .td-container {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
}

/* Floating animation for homepage elements */
@keyframes float {
    0%, 100% { 
        transform: translateY(0px); 
    }
    50% { 
        transform: translateY(-20px); 
    }
}

.floating-icon {
    animation: float 6s ease-in-out infinite;
}

/* Feature card hover effects */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* CTA button hover effects */
.cta-button {
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.cta-button.primary:hover {
    box-shadow: 0 6px 20px rgba(255,215,0,0.6);
}

/* Responsive design for homepage */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.2rem !important;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-container {
        flex-direction: column;
    }
    
    .step-arrow {
        display: none !important;
    }
}

/* Enhanced typography for homepage */
.homepage-hero h1 {
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.homepage-hero p {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
}

/* Smooth scrolling for homepage */
html {
    scroll-behavior: smooth;
}

/* Loading animation for homepage */
.homepage-loading {
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
} 