/* Custom Styles for Epoha Online */

.gradient-text {
    background: linear-gradient(135deg, #03c6e8, #a005d6, #f404b7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-bg {
    background: linear-gradient(135deg, #03c6e8, #a005d6, #f404b7);
}

.mobile-card {
    background: #1f2937;
    border-radius: 20px;
    overflow: hidden;
    max-width: 300px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border: none;
}

.video-thumbnail {
    background: linear-gradient(45deg, #374151, #4b5563);
    aspect-ratio: 9/16;
    position: relative;
}

.hero-background {
    background: linear-gradient(135deg, rgba(3, 198, 232, 0.1), rgba(160, 5, 214, 0.1), rgba(244, 4, 183, 0.1));
}

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

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

::-webkit-scrollbar-track {
    background: #1f2937;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #03c6e8, #a005d6);
    border-radius: 4px;
}

/* Mobile Sidebar Styles */
#mobileSidebar .gradient-text {
    background: linear-gradient(135deg, #03c6e8, #a005d6, #f404b7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Sidebar navigation link hover effects */
#mobileSidebar nav a {
    transition: all 0.3s ease;
    position: relative;
}

#mobileSidebar nav a:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: linear-gradient(135deg, #03c6e8, #a005d6, #f404b7);
    border-radius: 2px;
    transition: height 0.3s ease;
}

#mobileSidebar nav a:hover:before {
    height: 100%;
}



/* Prevent body scroll when sidebar is open */
body.overflow-hidden {
    overflow: hidden;
}

/* Smooth transitions for menu icon */
#menuIcon {
    transition: transform 0.3s ease;
}

/* Animation for social media buttons in sidebar */
#mobileSidebar .grid a {
    transition: all 0.3s ease;
    transform: translateX(0);
}

#mobileSidebar .grid a:hover {
    transform: translateX(5px);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #a005d6, #f404b7);
}

/* Mobile menu animations */
.mobile-menu {
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-menu.active {
    transform: translateY(0);
}

/* Hover effects for cards */
.mobile-card:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

/* Play button styling */
.play-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-button:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

.play-button i {
    margin-left: 2px; /* Center the triangle better */
}

/* Featured video play button styling */
.featured-play-button {
    transition: all 0.3s ease;
    display: inline-block;
}

.featured-play-button:hover {
    transform: scale(1.1);
}

.featured-play-button i {
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(3, 198, 232, 0.3));
}

.group:hover .featured-play-button i {
    color: #f404b7 !important;
    transform: scale(1.05);
    filter: drop-shadow(0 6px 12px rgba(244, 4, 183, 0.4));
}

/* Featured video container styling */
.group {
    position: relative;
}

.group::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(3, 198, 232, 0.1), rgba(160, 5, 214, 0.1), rgba(244, 4, 183, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 1rem;
}

.group:hover::before {
    opacity: 1;
}

/* Contact info icons styling */
.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.125rem; /* text-lg equivalent */
}

/* Feature icons styling - same as contact icons for consistency */
.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 1.125rem; /* text-lg equivalent */
}

/* Form focus styles */
.form-input:focus {
    outline: none;
    border-color: #03c6e8;
    box-shadow: 0 0 0 3px rgba(3, 198, 232, 0.1);
}

/* Loading animation for buttons */
.btn-loading {
    position: relative;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive video container */
.video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-responsive iframe,
.video-responsive object,
.video-responsive embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Social media brand colors */
.social-tiktok:hover {
    background-color: #ff0050;
}

.social-instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-youtube:hover {
    background-color: #ff0000;
}

.social-facebook:hover {
    background-color: #1877f2;
}

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

.slide-up {
    animation: slideUp 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

/* Text truncation utility */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Ensure equal card heights */
.mobile-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mobile-card .video-thumbnail {
    flex-shrink: 0;
}

/* Video loading states */
.play-button.loading {
    background: rgba(0, 0, 0, 0.7) !important;
    transform: none !important;
}

.play-button.loading:hover {
    background: rgba(0, 0, 0, 0.7) !important;
    transform: none !important;
}

/* Video thumbnail styling */
.video-thumbnail {
    opacity: 0;
    transition: opacity 0.5s ease;
    object-fit: cover;
}

.video-thumbnail[style*="opacity: 1"] {
    opacity: 1;
}

/* Video container interactions */
.video-container {
    transition: transform 0.3s ease;
}

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

/* Video iframe hidden state */
.video-iframe.hidden {
    display: none !important;
}

/* Enhanced video overlay */
.video-overlay {
    backdrop-filter: blur(2px);
    transition: all 0.3s ease;
}

/* Custom positioning for items - Free layout without container constraints */
.slide .item:nth-child(1){
    top: 100px !important;
    left: -80px !important;
    transform: rotate(-3deg) scale(1.3) !important;
    z-index: 60 !important;
    max-width: 450px;
    height: 250px;
}

.slide .item:nth-child(2){
    top: 20px !important;
    right: 50px !important;
    left: auto !important;
    transform: rotate(0deg) !important;
    z-index: 50 !important;
}

.slide .item:nth-child(3){
    top: 180px !important;
    right: 30px !important;
    left: auto !important;
    transform: rotate(0deg) !important;
    z-index: 40 !important;
}

.slide .item:nth-child(4){
    top: 210px !important;
    right: 10px !important;
    left: auto !important;
    transform: rotate(0deg) !important;
    z-index: 30 !important;
}

.slide .item:nth-child(5){
    top: 240px !important;
    right: -10px !important;
    left: auto !important;
    transform: rotate(0deg) !important;
    z-index: 20 !important;
}

.slide .item:nth-child(n + 6){
    top: 270px !important;
    right: -30px !important;
    left: auto !important;
    transform: rotate(0deg) !important;
    opacity: 0 !important;
    z-index: 10 !important;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .hero-background {
        min-height: auto;
    }
    
    .mobile-card {
        max-width: 100%;
    }
    
    .gradient-text {
        font-size: clamp(1.5rem, 5vw, 3rem);
    }
    
    /* Adjust video card height on mobile */
    .mobile-card .video-thumbnail {
        height: 250px !important;
    }
    
    .mobile-card .p-4.h-28 {
        height: auto !important;
        min-height: 100px;
    }

}

/* Comment card styles */
.comment-card {
  position: absolute;
  width: 350px;
  height: 180px;
  border-radius: 1rem;
  box-shadow: 0 8px 32px 0 rgba(0,0,0,0.25), 0 2px 8px 0 rgba(77, 43, 182, 0.12);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  background-color: #121212;
  border: 2px solid #fff;
  transition: all 0.7s cubic-bezier(0.4,0,0.2,1);
}

/* Mobile: up to 640px */
@media (max-width: 640px) {
  .comment-card {
    width: 0vw;
    min-width: 180px;
    max-width: 99vw;
    height: 110px;
    border-radius: 0.75rem;
    left: 0 !important;
    right: 0 !important;
    margin-left: auto;
    margin-right: auto;
  }
  .slide .item:nth-child(2){
    top: 10px !important;
    right: 20px !important;
    left: auto !important;
    transform: rotate(0deg) !important;
    z-index: 50 !important;
  }
}

/* Tablet: 641px - 1024px */
@media (min-width: 641px) and (max-width: 1024px) {
  .comment-card {
    width: 250px;
    height: 140px;
    border-radius: 0.9rem;
     left: 0 !important;
    right: 0 !important;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Small desktop: 1025px - 1280px */
@media (min-width: 1025px) and (max-width: 1280px) {
  .comment-card {
    width: 340px;
    height: 170px;
    border-radius: 1rem;
      left: 0 !important;
    right: 0 !important;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Large desktop: 1281px and up */
@media (min-width: 1281px) {
  .comment-card {
    width: 400px;
    height: 210px;
    border-radius: 1.25rem;
  }
}