/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Custom styles */
body {
    font-family: 'Oxanium', sans-serif;
    background-color: #0f1118;
    color: #e6e6e6;
}

.nav-item {
    position: relative;
    z-index: 20;
}

.nav-item:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #4a6dff;
    transition: width 0.3s ease;
}

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

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 30;
    min-width: 200px;
    padding-top: 0.5rem;
}

.dropdown-trigger:hover .dropdown,
.dropdown:hover {
    display: block;
}

/* Add a pseudo-element to create a hover bridge */
.dropdown-trigger::after {
    content: '';
    position: absolute;
    height: 20px;
    width: 100%;
    left: 0;
    bottom: -10px;
    background: transparent;
}

.card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(74, 109, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.hero-section {
    background-image: url("/assets/war3ft/bg-28c70320.png");
    background-size: cover;
    background-position: center 15%;
    position: relative;
    isolation: isolate;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            rgba(15, 17, 24, 0.75) 0%,
            rgba(15, 17, 24, 0.4) 40%,
            rgba(15, 17, 24, 0.2) 100%);
    mix-blend-mode: multiply;
}

/* Ensure content is above the overlay */
.hero-section>* {
    position: relative;
    z-index: 2;
}

/* Add a subtle blue accent to enhance the theme */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg,
            rgba(74, 109, 255, 0.1) 0%,
            transparent 100%);
    z-index: 1;
}

.custom-input {
    background-color: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(74, 109, 255, 0.3);
    color: #e6e6e6;
    transition: all 0.3s ease;
}

.custom-input:focus {
    border-color: #4a6dff;
    box-shadow: 0 0 0 2px rgba(74, 109, 255, 0.2);
    outline: none;
}

.custom-button {
    transition: all 0.3s ease;
}

.custom-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 109, 255, 0.3);
}

.feature-icon {
    background: linear-gradient(135deg, #4a6dff, #2a4cd9);
    box-shadow: 0 4px 16px rgba(74, 109, 255, 0.4);
}

.server-status {
    position: relative;
    padding-left: 16px;
}

.server-status::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981;
}

.server-status.offline::before {
    background-color: #ef4444;
}

.language-selector {
    position: relative;
}

.language-options {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 10;
}

.language-selector:hover .language-options {
    display: block;
}

.custom-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.custom-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(30, 41, 59, 0.6);
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #4a6dff;
}

input:checked+.slider:before {
    transform: translateX(24px);
}

.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.screenshot-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.screenshot-item img {
    transition: transform 0.3s ease;
}

.screenshot-item:hover img {
    transform: scale(1.05);
}

/* Logo styles */
.logo-text {
    font-family: 'Oxanium', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #4a6dff 0%, #6d8bff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.logo-text:hover {
    transform: translateY(-1px);
    text-shadow: 0 2px 10px rgba(74, 109, 255, 0.3);
}

/* Icon styles */
.ri-arrow-down-s-line::before {
    content: "\ea4e";
    font-family: remixicon !important;
}

[class^="ri-"] {
    font-family: remixicon !important;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: inline-block;
}

/* Dropdown styles */
.dropdown-trigger {
    position: relative;
}

.dropdown-trigger .icon-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-left: 4px;
}

/* Create hover area */
.dropdown-trigger::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

/* Ensure dropdown menu items are clickable */
.dropdown a {
    position: relative;
    z-index: 31;
    display: block;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
}

/* Tailwind base styles */
@tailwind base;
@tailwind components;
@tailwind utilities;