/* Custom Styles für Altcoin Analysis */

:root {
    --primary-gradient: linear-gradient(135deg, #ff6b35, #f7931e);
    --secondary-gradient: linear-gradient(135deg, #667eea, #764ba2);
    --success-gradient: linear-gradient(135deg, #11998e, #38ef7d);
    --danger-gradient: linear-gradient(135deg, #fc4a1a, #f7b733);
}

* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

/* Navigation Styles */
.nav-link {
    @apply text-gray-300 hover:text-white px-4 py-2 rounded-lg transition-colors duration-200;
}

.nav-link:hover {
    @apply bg-gray-700;
}

/* Enhanced Sector Cards */
.sector-card {
    @apply rounded-2xl shadow-2xl transform transition-all duration-500 hover:scale-105 hover:shadow-3xl;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.sector-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 50%, rgba(0,0,0,0.1) 100%);
    pointer-events: none;
    z-index: 1;
}

.sector-card:hover::before {
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.1) 50%, rgba(0,0,0,0.05) 100%);
}

.sector-number {
    @apply text-8xl font-black opacity-20 absolute top-4 right-4;
    font-family: 'Inter', sans-serif;
    z-index: 2;
    background: linear-gradient(45deg, rgba(255,255,255,0.6), rgba(255,255,255,0.2));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sector-card > * {
    position: relative;
    z-index: 3;
}

/* Sector card hover effects */
.sector-card:hover {
    transform: scale(1.05) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.sector-card:hover .sector-number {
    @apply opacity-30;
    transform: scale(1.1);
}

/* Feature box animations */
.sector-card:hover .space-y-3 > div {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.2);
}

/* Gradient text for potential */
.text-gradient {
    background-size: 200% auto;
    animation: gradientShift 3s ease-in-out infinite alternate;
}

@keyframes gradientShift {
    0% { background-position: 0% center; }
    100% { background-position: 100% center; }
}

/* Custom colors for icons */
.text-gold-400 {
    color: #fbbf24;
}

/* Enhanced hover states for feature items */
.sector-card .space-y-3 > div {
    transition: all 0.3s ease;
    cursor: pointer;
}

.sector-card .space-y-3 > div:hover {
    transform: translateX(10px) scale(1.02);
    background: rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Pulse animation for high-potential sectors */
@keyframes pulse {
    0% { 
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.7);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 0 20px rgba(255, 107, 53, 0);
        transform: scale(1.02);
    }
    100% { 
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0);
        transform: scale(1);
    }
}

/* Special glow for current phase */
@keyframes phaseGlow {
    0% { 
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    50% { 
        box-shadow: 0 0 0 15px rgba(16, 185, 129, 0.2);
    }
    100% { 
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Icon color improvements */
.fas {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Sector number enhanced styling */
.sector-number {
    transition: all 0.4s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Enhanced section spacing and typography */
#sectors h2 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Mobile responsive improvements */
@media (max-width: 768px) {
    .sector-card {
        margin-bottom: 2rem;
    }
    
    .sector-number {
        @apply text-6xl top-2 right-2;
    }
    
    .sector-card:hover {
        transform: scale(1.02) !important;
    }
    
    .text-6xl {
        font-size: 3rem;
    }
    
    /* Sektor-Rotation Mobile Optimierungen */
    .lg\:grid-cols-3 {
        gap: 1.5rem;
    }
    
    /* Kleinere Schriftgrößen auf Mobile */
    .text-4xl {
        @apply text-2xl;
    }
    
    .text-2xl {
        @apply text-xl;
    }
    
    /* Container Padding anpassen */
    .container {
        @apply px-4;
    }
    
    /* Phase Cards auf Mobile */
    .phase-card {
        padding: 1.5rem !important;
    }
    
    .phase-card .text-6xl {
        @apply text-4xl;
    }
    
    /* Progress Bars auf Mobile breiter */
    .progress-bar {
        height: 8px !important;
    }
}

/* Tablet Optimierungen */
@media (min-width: 769px) and (max-width: 1024px) {
    .sector-card {
        padding: 1.5rem;
    }
    
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .lg\:grid-cols-3 > div:last-child {
        grid-column: span 2;
        max-width: 50%;
        margin: 0 auto;
    }
}

/* Desktop Verbesserungen */
@media (min-width: 1025px) {
    .sector-card:hover {
        transform: scale(1.05) rotateX(5deg) rotateY(5deg);
    }
    
    /* Sektor-Rotation Cards gleichmäßiger */
    .rotation-phase {
        min-height: 500px;
        display: flex;
        flex-direction: column;
    }
    
    .rotation-content {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
}

/* Sektor-Rotation spezifische Styles */
.phase-progress-bar {
    transition: width 0.8s ease-out;
}

.phase-card {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.phase-card:hover {
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

/* Goldene Regel Animation */
@keyframes goldenGlow {
    0% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(251, 191, 36, 0); }
    100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); }
}

.golden-rule {
    animation: goldenGlow 3s infinite;
}

/* Bessere Lesbarkeit für kleine Bildschirme */
@media (max-width: 640px) {
    .text-xl {
        @apply text-lg;
    }
    
    .text-lg {
        @apply text-base;
    }
    
    /* Padding reduzieren auf sehr kleinen Screens */
    .p-8 {
        @apply p-4;
    }
    
    .p-6 {
        @apply p-3;
    }
    
    /* Goldene Regel Box kompakter */
    .golden-rule-mobile {
        padding: 1rem !important;
    }
    
    .golden-rule-mobile .text-3xl {
        @apply text-xl;
    }
    
    .golden-rule-mobile .text-xl {
        @apply text-base;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

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

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

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

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Chart Containers */
canvas {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .sector-card {
        margin-bottom: 1rem;
    }
    
    .sector-number {
        @apply text-4xl top-1 right-2;
    }
    
    h1 {
        @apply text-2xl;
    }
    
    h2 {
        @apply text-xl;
    }
}

/* Glowing Effects */
.glow-effect {
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
    transition: box-shadow 0.3s ease;
}

.glow-effect:hover {
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.5);
}

/* Progress Bars for Timeline */
.progress-bar {
    @apply bg-gray-700 rounded-full h-2 mb-2;
}

.progress-fill {
    @apply bg-gradient-to-r from-green-400 to-blue-500 h-full rounded-full transition-all duration-1000 ease-out;
}

/* Status Indicators */
.status-indicator {
    @apply inline-block w-3 h-3 rounded-full mr-2;
}

.status-bullish { @apply bg-green-400; }
.status-neutral { @apply bg-yellow-400; }
.status-bearish { @apply bg-red-400; }

/* Tooltip Styles */
.tooltip {
    @apply absolute bg-black text-white text-xs rounded py-1 px-2 opacity-0 transition-opacity duration-200;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: black transparent transparent transparent;
}

.tooltip-container:hover .tooltip {
    @apply opacity-100;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    @apply bg-gray-800;
}

::-webkit-scrollbar-thumb {
    @apply bg-gray-600 rounded;
}

::-webkit-scrollbar-thumb:hover {
    @apply bg-gray-500;
}