/* Custom CSS for PoE2 Trade Monitor Demo Site */

/* Background Image */
body {
    background-image: url('background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
}


/* Language Switcher */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 5px;
}

.language-switcher .btn {
    padding: 5px 15px;
    font-size: 0.9rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.language-switcher .btn:hover {
    transform: scale(1.05);
}

.language-switcher .btn.active {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #000;
}

/* Navigation */
.navbar {
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 193, 7, 0.3);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff !important;
}

.navbar-brand i {
    margin-right: 10px;
}

.nav-link {
    color: #fff !important;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #ffc107 !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: #ffc107;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    padding: 100px 0;
    position: relative;
    background: rgba(0, 0, 0, 0.7);
}

.hero-content h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    animation: fadeInUp 1s ease-out;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-content h1 > div {
    display: flex;
    flex-direction: column;
}

.hero-content h2 {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-content p {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-content .btn {
    animation: fadeInUp 1s ease-out 0.6s both;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
    transition: all 0.3s ease;
}

.hero-content .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

.hero-image {
    animation: fadeInRight 1s ease-out 0.8s both;
}

.screenshot-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screenshot-container:hover {
    transform: scale(1.02);
}

.screenshot-container img {
    border-radius: 15px;
}

.screenshot-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    border-radius: 15px;
    pointer-events: none;
}

.screenshot-slide.active {
    opacity: 1;
    z-index: 2;
}

/* Features Section */
#features {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffc107;
    box-shadow: 0 10px 30px rgba(255, 193, 7, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.feature-card h4 {
    color: #fff;
    font-weight: bold;
    margin-bottom: 15px;
}

.feature-card p {
    color: #ccc;
    line-height: 1.6;
}

/* Screenshots Section */
#screenshots {
    background: rgba(0, 0, 0, 0.4);
}

/* Video Section */
#video {
    background: rgba(0, 0, 0, 0.4);
}

.video-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    border-radius: 20px;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 20px;
}

/* Video hover effects */
.video-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
}

.screenshot-carousel {
    max-width: 1000px;
    margin: 0 auto;
}

.carousel {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
}

.carousel-item {
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(3px);
}

.carousel-item img {
    height: 500px;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    width: 100%;
    display: block;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.carousel-caption h5 {
    color: #ffc107;
    font-weight: bold;
}

.carousel-caption p {
    color: #fff;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 193, 7, 0.8);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: #ffc107;
    transform: translateY(-50%) scale(1.1);
}

.carousel-indicators button {
    background-color: rgba(255, 193, 7, 0.5);
    border-radius: 50%;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    background-color: #ffc107;
    transform: scale(1.2);
}

/* Download Section */
#download {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
}

.download-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    height: 100%;
}

.download-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffc107;
    box-shadow: 0 15px 40px rgba(255, 193, 7, 0.2);
}

.download-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

.download-card h4 {
    color: #fff;
    font-weight: bold;
    margin-bottom: 15px;
}

.download-card p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 25px;
}

.download-card .btn {
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
}

.download-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
    text-decoration: none;
}

.download-card .btn:visited {
    color: inherit;
}

.download-card .btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.5);
}

/* Telegram Card */
.telegram-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(23, 162, 184, 0.3);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.telegram-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    border-color: #17a2b8;
    box-shadow: 0 10px 30px rgba(23, 162, 184, 0.2);
}

.telegram-icon {
    font-size: 3rem;
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

.telegram-content {
    flex: 1;
}

.telegram-content h4 {
    color: #fff;
    font-weight: bold;
    margin-bottom: 10px;
}

.telegram-content p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 20px;
}

.telegram-card .btn {
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3);
    transition: all 0.3s ease;
}

.telegram-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(23, 162, 184, 0.4);
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.8);
    border-top: 1px solid rgba(255, 193, 7, 0.3);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 50px 0;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .language-switcher {
        top: 10px;
        right: 10px;
    }
    
    .language-switcher .btn {
        padding: 3px 10px;
        font-size: 0.8rem;
    }
    
    .carousel-item img {
        height: 300px;
    }
    
    .feature-card,
    .download-card {
        margin-bottom: 20px;
    }
    
    .video-container {
        margin: 0 10px;
    }
    
    .telegram-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .telegram-icon {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .carousel-item img {
        height: 250px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background: #ffc107;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ffb300;
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

img[src=""] {
    opacity: 0;
}

/* Text selection */
::selection {
    background: rgba(255, 193, 7, 0.3);
    color: #fff;
}

/* Focus styles for accessibility */
.btn:focus,
.nav-link:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.5);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .feature-card,
    .download-card {
        border: 2px solid #ffc107;
    }
    
    .navbar {
        border-bottom: 2px solid #ffc107;
    }
}
