/* Cycle Builder Specific Styles */

/* Base Component Transitions */
.compound-card {
    transition: all 0.2s ease;
}

.compound-card:hover {
    transform: translateY(-2px);
}

/* Warning System Styles */
.warning-high {
    @apply border-red-500 bg-red-50 dark:bg-red-900/20;
}

.warning-medium {
    @apply border-yellow-500 bg-yellow-50 dark:bg-yellow-900/20;
}

.warning-low {
    @apply border-blue-500 bg-blue-50 dark:bg-blue-900/20;
}

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

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in-right {
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

/* Compound Filter Buttons */
.compound-filter {
    background: #f3f4f6;
    color: #6b7280;
    border: 2px solid transparent;
}

.compound-filter:hover {
    background: #e5e7eb;
    color: #4b5563;
}

.compound-filter.active {
    background: #8b5cf6;
    color: white;
    border-color: #8b5cf6;
}

/* Search Suggestions */
.search-suggestion {
    display: inline-block;
    padding: 4px 12px;
    margin: 4px;
    background: #f3f4f6;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-suggestion:hover {
    background: #8b5cf6;
    color: white;
}

/* Preset Cycle Cards */
.preset-cycle-card {
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
}

.preset-cycle-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Preset Badge */
.preset-badge {
    position: absolute;
    top: -12px;
    right: 16px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* Popular Cards - Light Mode */
html:not(.dark) .preset-cycle-card.popular {
    border-color: #8b5cf6;
    background: linear-gradient(to bottom right, #232946, #29315c);
}

html:not(.dark) .compound-card.recommended {
    border-color: #8b5cf6;
    background: linear-gradient(to bottom right, #232946, #29315c);
}

/* Enhanced Compound Cards */
.compound-card {
    position: relative;
    overflow: visible;
}

.compound-card.beginner-friendly::before {
    content: 'Beginner';
    position: absolute;
    top: -8px;
    left: 12px;
    background: #10b981;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}

.compound-card.recommended::before {
    content: 'Recommended';
    position: absolute;
    top: -8px;
    left: 12px;
    background: #8b5cf6;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}

/* Animated Background Pattern */
@keyframes slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(40px); }
}

/* Enhanced Compound Type Tabs */
.compound-type-tab {
    position: relative;
    padding: 12px 24px;
    margin-right: 8px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    color: #64748b;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    cursor: pointer;
    overflow: hidden;
}

.compound-type-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}

.compound-type-tab:hover::before {
    left: 100%;
}

.compound-type-tab:hover {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    color: #475569;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.compound-type-tab.active {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    color: white;
    border-color: #1e40af;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.compound-type-tab.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #3b82f6;
}

.compound-type-tab svg {
    transition: transform 0.3s ease;
}

.compound-type-tab:hover svg {
    transform: scale(1.1);
}

/* Container Layout Fixes */
.compounds-container {
    overflow-x: hidden;
}

.compounds-container .grid {
    max-width: 100%;
}

/* DARK MODE STYLES */

/* Dark Mode Compound Cards */
.dark .compound-card {
    background: linear-gradient(to bottom right, #1f2937, #374151);
    border-color: #4b5563;
}

.dark .compound-card:hover {
    background: linear-gradient(to bottom right, #374151, #4b5563);
    border-color: #60a5fa;
}

/* Dark Mode Preset Cards */
.dark .preset-cycle-card {
    background: linear-gradient(135deg, #1e293b, #334155) !important;
    border-color: #475569 !important;
    color: #f1f5f9 !important;
}

.dark .preset-cycle-card:hover {
    background: linear-gradient(135deg, #334155, #475569) !important;
    border-color: #3b82f6 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
}

.dark .preset-cycle-card.popular {
    background: linear-gradient(135deg, #1e293b, #334155) !important;
    border-color: #8b5cf6 !important;
}

/* Dark Mode Text Fixes */
.dark .preset-cycle-card .text-gray-600 {
    color: #cbd5e1 !important;
}

.dark .preset-cycle-card .text-gray-500 {
    color: #94a3b8 !important;
}

.dark .preset-cycle-card .text-gray-700 {
    color: #e2e8f0 !important;
}

.dark .preset-cycle-card .text-gray-400 {
    color: #cbd5e1 !important;
}

/* Dark Mode Preset Badges */
.dark .preset-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    font-weight: 600;
}

/* Dark Mode Experience Level Badges */
.dark .bg-green-100 {
    background: #166534 !important;
}

.dark .text-green-800 {
    color: #bbf7d0 !important;
}

/* Dark Mode Tabs */
.dark .compound-type-tab {
    background: linear-gradient(135deg, #374151, #4b5563);
    color: #9ca3af;
    border-color: #4b5563;
}

.dark .compound-type-tab::before {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.dark .compound-type-tab:hover {
    background: linear-gradient(135deg, #4b5563, #6b7280);
    color: #d1d5db;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.dark .compound-type-tab.active {
    background: linear-gradient(135deg, #1e40af, #1d4ed8);
    color: white;
    border-color: #1e40af;
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.4);
}

.dark .compound-type-tab.active::after {
    border-bottom-color: #1e40af;
}

/* Dark Mode General Layout Improvements */
.dark .bg-white {
    background: linear-gradient(135deg, #1e293b, #334155) !important;
    border: 1px solid #475569;
}

.dark .rounded-xl {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.dark .bg-gray-50 {
    background: linear-gradient(135deg, #0f172a, #1e293b) !important;
}

.dark h2 {
    color: #f1f5f9;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.dark h3 {
    color: #e2e8f0;
}

.dark .max-w-7xl {
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.6));
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(71, 85, 105, 0.3);
}

/* Dark Mode Input Styling */
.dark input[type="text"],
.dark input[type="number"],
.dark select {
    background: linear-gradient(135deg, #1e293b, #334155);
    border-color: #475569;
    color: #f1f5f9;
}

.dark input[type="text"]:focus,
.dark input[type="number"]:focus,
.dark select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Dark Mode Androgenic Load Display */
.dark .text-6xl {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
