/* Main CSS File for Skinvest.cc */

:root {
    --primary: #ff4d00;
    --secondary: #00a8ff;
    --dark: #1a1a1a;
    --light: #f5f5f5;
    --gray: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--light);
}

.logo span {
    color: var(--primary);
}

/* Hero Section */
.hero {
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.feature {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.08);
}

.feature i {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--primary);
}

.feature h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

/* CTA Section */
.cta {
    text-align: center;
    margin-bottom: 80px;
}

.cta h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.newsletter {
    max-width: 500px;
    margin: 0 auto;
}

/* Social Links */
.social {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.social a {
    margin: 0 10px;
    color: var(--light);
    font-size: 24px;
    transition: color 0.3s ease;
}

.social a:hover {
    color: var(--primary);
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    margin-top: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* Steam login styles */
/* Steam login styles */
.auth-container {
    display: flex;
    align-items: center;
}

.steam-login {
    background-color: #171a21;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.steam-login:hover {
    background-color: #1b2838;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.user-avatar-container {
    position: relative;
    cursor: pointer;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.logout-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }
}

/* Notification Styles */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
}

.notification.fade-out {
    animation: notification-fade-out 0.3s ease-out forwards;
}

.notification-content {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    flex-grow: 1;
}

.notification-content i {
    margin-right: 12px;
    font-size: 18px;
}

/* Notification types */
.notification {
    background-color: #272727;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    overflow: hidden;
    animation: notification-slide-in 0.3s ease-out forwards;
    color: var(--light, #ffffff);
}

.notification-close {
    background: none;
    border: none;
    padding: 12px;
    cursor: pointer;
    color: #aaa;
    transition: color 0.2s;
}

.notification-close:hover {
    color: var(--light, #ffffff);
}

.notification.success {
    border-left: 5px solid #4cd137;
}

.notification.success i {
    color: #4cd137;
}

.notification.error {
    border-left: 5px solid #eb4b4b;
}

.notification.error i {
    color: #eb4b4b;
}

.notification.info {
    border-left: 5px solid #3498db;
}

.notification.info i {
    color: #3498db;
}

.notification.warning {
    border-left: 5px solid #f39c12;
}

.notification.warning i {
    color: #f39c12;
}

/* Animations */
@keyframes notification-slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes notification-fade-out {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.logo-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

.logo-link:hover {
    text-decoration: none;
}

/* Main Login Button */
.login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #ff4d00;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.login-btn:hover {
    background-color: #e64500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow: auto;
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background-color: #1e1e1e;
    margin: 10% auto;
    padding: 0;
    width: 90%;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: modalFadeIn 0.3s ease;
}

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

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: white;
    font-size: 18px;
}

.close {
    color: #aaa;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close:hover {
    color: white;
}

.modal-body {
    padding: 24px;
}

.modal-body p {
    color: #ccc;
    margin-top: 0;
    margin-bottom: 20px;
}

/* Auth buttons inside modal */
.modal .auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.modal .steam-login,
.modal .google-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 15px;
    font-size: 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal .steam-login {
    background-color: #171a21;
    color: white;
    border: none;
}

.modal .steam-login:hover {
    background-color: #2a475e;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.modal .google-login {
    background-color: white;
    color: #757575;
    border: 1px solid #ddd;
    padding: 2px;
}

.modal .google-login:hover {
    background-color: #f8f8f8;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.modal .google-login i {
    color: #4285F4;
}

.modal-note {
    margin-top: 20px;
    border-top: 1px solid #333;
    padding-top: 15px;
}

.modal-note p {
    font-size: 12px;
    color: #888;
    text-align: center;
    margin: 0;
}

.modal-note a {
    color: #ff4d00;
    text-decoration: none;
}

.modal-note a:hover {
    text-decoration: underline;
}

/* Body fixed when modal is open */
body.modal-open {
    overflow: hidden;
}

/* User info styles */
.user-info {
    display: none;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ff4d00;
}

.user-name {
    color: white;
    font-weight: 500;
}

.logout-btn {
    background-color: transparent;
    color: #ccc;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    color: white;
    border-color: #666;
    background-color: rgba(255, 255, 255, 0.05);
}

/* User avatar dropdown */
.user-avatar-container {
    position: relative;
}

.avatar-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background-color: #1e1e1e;
    min-width: 180px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 100;
    overflow: hidden;
}

.avatar-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 15px;
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.avatar-dropdown-item:hover {
    background-color: #2a2a2a;
    color: white;
}

.avatar-dropdown-divider {
    height: 1px;
    background-color: #333;
    margin: 4px 0;
}

/* Responsive styles */
@media (max-width: 480px) {
    .modal-content {
        margin: 20% auto;
        width: 95%;
    }
}

/* Improved dropdown behavior with hover delay */

/* User avatar container */
.user-avatar-container {
    position: relative;
}

/* Avatar dropdown styles */
.avatar-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background-color: #1e1e1e;
    min-width: 180px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 100;
    overflow: hidden;
    
    /* Hidden by default */
    opacity: 0;
    visibility: hidden;
    
    /* Transition for smooth appearance/disappearance */
    transition: 
        opacity 0.2s ease, 
        visibility 0s linear 0.3s; /* Delay hiding by 300ms */
    
    /* Add a pointer gap to prevent dropdown from closing too quickly */
    pointer-events: none;
}

/* When container is hovered, show dropdown with delay */
.user-avatar-container:hover .avatar-dropdown {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s; /* Show immediately on hover */
    pointer-events: auto;
}

/* Create an invisible area that extends to the dropdown */
.user-avatar-container::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 20px; /* Gap between avatar and dropdown */
    background-color: transparent;
}

/* Keep dropdown visible when hovering it directly */
.avatar-dropdown:hover {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

/* Add a bit of delay after leaving the dropdown before it disappears */
.user-avatar-container:hover + .avatar-dropdown,
.avatar-dropdown:hover {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

/* Dropdown items */
.avatar-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 15px;
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.avatar-dropdown-item:hover {
    background-color: #2a2a2a;
    color: white;
}

.avatar-dropdown-divider {
    height: 1px;
    background-color: #333;
    margin: 4px 0;
}

/* Add this to your CSS */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
  }
  
  .modal-content {
    position: relative;
    background-color: var(--bg-color, #1e1e1e);
    margin: auto;
    padding: 0;
    border-radius: 8px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s;
  }
  
  @keyframes modalFadeIn {
    from {opacity: 0; transform: translateY(-20px);}
    to {opacity: 1; transform: translateY(0);}
  }
  
  .close {
    color: #aaa;
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
  }
  
  .close:hover,
  .close:focus {
    color: var(--primary, #ff4d00);
    text-decoration: none;
  }