/**
 * AlienHost WHMCS Theme - Layout Styles
 * 
 * Estilos específicos para el layout, header, footer y componentes principales
 */

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
    background: #050810;
    padding: 10px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.top-bar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.top-bar-left {
    justify-content: flex-start;
}

.top-bar-right {
    justify-content: flex-end;
}

.top-bar li {
    display: flex;
    align-items: center;
}

.top-bar a {
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s ease;
}

.top-bar a:hover {
    color: #fff;
}

.top-bar .status-indicator {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
    margin-right: 6px;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
}

.top-bar .dropdown-toggle {
    cursor: pointer;
}

.top-bar .dropdown-toggle i.fa-chevron-down {
    font-size: 0.625rem;
    margin-left: 0.25rem;
}

.top-bar .badge-danger {
    background: #ef4444;
    font-size: 0.625rem;
    padding: 2px 5px;
    border-radius: 10px;
    margin-left: 0.25rem;
}

/* Notifications dropdown */
.notifications-dropdown {
    min-width: 300px;
    max-height: 400px;
    overflow-y: auto;
}

.notifications-dropdown .dropdown-header {
    font-weight: 600;
    color: #fff;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   MAIN HEADER / NAVBAR
   ============================================ */
.main-header {
    background: rgba(5, 8, 16, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar-main {
    background: transparent;
    border: none;
    margin-bottom: 0;
    min-height: 70px;
}

.navbar-brand {
    padding: 12px 15px;
}

.navbar-brand img {
    max-height: 42px;
    transition: transform 0.2s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.logo-mobile {
    display: none;
}

@media (max-width: 767px) {
    .logo-desktop {
        display: none;
    }
    .logo-mobile {
        display: block;
        max-height: 32px;
    }
}

/* Navbar toggle mobile */
.navbar-toggle {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    margin-top: 16px;
    margin-bottom: 16px;
}

.navbar-toggle .icon-bar {
    background-color: #fff;
}

.navbar-toggle:hover,
.navbar-toggle:focus {
    background: rgba(139, 92, 246, 0.2);
}

/* Nav links */
.navbar-main .navbar-nav > li > a {
    color: #94a3b8;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 24px 16px;
    transition: all 0.2s ease;
    position: relative;
}

.navbar-main .navbar-nav > li > a:hover,
.navbar-main .navbar-nav > li.active > a,
.navbar-main .navbar-nav > li.open > a {
    color: #fff;
    background: transparent;
}

/* Subrayado animado en hover */
.navbar-main .navbar-nav > li > a::after {
    content: '';
    position: absolute;
    bottom: 15px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #8b5cf6, #06b6d4);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.navbar-main .navbar-nav > li > a:hover::after,
.navbar-main .navbar-nav > li.active > a::after {
    width: 60%;
}

/* Nav CTA buttons */
.nav-cta {
    margin-left: 8px;
}

.nav-cta .btn-nav {
    margin-top: 12px;
}

/* Dropdown arrow */
.dropdown-arrow {
    font-size: 0.625rem;
    margin-left: 0.25rem;
    transition: transform 0.2s ease;
}

.nav-item.dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

/* Nav CTA buttons */
.nav-cta {
    margin-left: 1rem;
}

.btn-nav {
    padding: 8px 20px;
    font-size: 0.875rem;
}

/* Admin indicator */
.admin-indicator .btn {
    animation: pulse 2s infinite;
}

/* ============================================
   DROPDOWN MENUS - Oscuro
   ============================================ */
.dropdown-menu {
    background: rgba(10, 14, 26, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    padding: 8px 0;
    margin-top: 10px;
}

/* Asegurar que dropdown se muestre cuando está abierto */
.dropdown.open > .dropdown-menu,
.open > .dropdown-menu,
.nav-item.dropdown.open > .dropdown-menu {
    display: block;
}

.dropdown-menu > li > a {
    color: #94a3b8;
    padding: 10px 20px;
    transition: all 0.2s ease;
}

.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
    background: rgba(139, 92, 246, 0.15);
    color: #fff;
}

.dropdown-menu > li.divider {
    background: rgba(255, 255, 255, 0.1);
    margin: 8px 0;
}

.dropdown-menu > li.dropdown-header {
    color: #64748b;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 8px 20px;
}

/* ============================================
   HERO SECTION (Homepage)
   ============================================ */
.hero-section {
    position: relative;
    padding: 80px 0 60px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.1) 0%, transparent 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.2), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.15), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.2), transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(255,255,255,0.15), transparent);
    background-size: 200px 200px;
    animation: twinkle 4s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero-gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center top, rgba(139, 92, 246, 0.15) 0%, transparent 60%);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #fff;
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 1.75rem;
    }
}

/* Domain Search Box */
.domain-search-box {
    padding: 2rem;
    border-radius: var(--radius-2xl);
    margin-bottom: 2rem;
}

.domain-search-wrapper .input-group {
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.domain-search-wrapper .input-group-addon {
    background: rgba(100, 25, 255, 0.2);
    border: none;
    color: var(--alien-primary);
    padding: 0 1rem;
}

.domain-search-wrapper .form-control {
    border: none;
    font-size: 1.125rem;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.9);
}

.domain-search-wrapper .btn-primary {
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    padding: 1rem 2rem;
}

.transfer-link {
    margin-top: 1rem;
}

.transfer-link .btn-link {
    color: var(--text-secondary);
}

.transfer-link .btn-link:hover {
    color: var(--alien-secondary);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

@media (max-width: 767px) {
    .hero-stats {
        gap: 1rem;
    }
    .stat-number {
        font-size: 1.25rem;
    }
}

/* ============================================
   QUICK ACTIONS
   ============================================ */
.quick-actions {
    padding: 2rem 0;
    margin-top: -2rem;
    position: relative;
    z-index: 10;
}

.actions-wrapper {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    gap: 2rem;
}

.action-title h4 {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

.actions-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    flex: 1;
    justify-content: center;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: rgba(100, 25, 255, 0.1);
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.action-item:hover {
    background: rgba(100, 25, 255, 0.2);
    border-color: var(--alien-primary);
    transform: translateY(-2px);
    color: var(--text-primary);
}

.action-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--alien-primary);
    border-radius: var(--radius-md);
    color: white;
}

.action-item span {
    font-weight: 500;
    font-size: 0.875rem;
}

@media (max-width: 991px) {
    .actions-wrapper {
        flex-direction: column;
    }
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */
.main-content-area {
    padding: 2rem 0;
    min-height: calc(100vh - 300px);
    background: transparent;
}

/* Page Header */
.page-header-section {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.page-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0;
    color: #fff;
}

.page-subtitle {
    display: block;
    font-size: 1rem;
    font-weight: 400;
    color: #94a3b8;
    margin-top: 0.5rem;
}

/* ============================================
   FOOTER - Muy oscuro como la web
   ============================================ */
.site-footer {
    background: #030509;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 3rem;
}

.footer-main {
    padding: 3rem 0;
}

.footer-brand {
    margin-bottom: 1.5rem;
}

.footer-logo img {
    max-height: 45px;
    margin-bottom: 1rem;
}

.footer-description {
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #94a3b8;
    transition: all 0.2s ease;
}

.social-link:hover {
    background: #8b5cf6;
    border-color: #8b5cf6;
    color: white;
    transform: translateY(-3px);
}

/* Footer widgets */
.footer-widget {
    margin-bottom: 1.5rem;
}

.widget-title {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    color: #fff;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #64748b;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.footer-links a:hover {
    color: #8b5cf6;
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: #64748b;
    font-size: 0.875rem;
}

.footer-contact li i {
    color: #8b5cf6;
    width: 16px;
}

.footer-contact a {
    color: #64748b;
}

.footer-contact a:hover {
    color: #8b5cf6;
}

/* Footer bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.4);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.copyright p {
    margin: 0;
}

.copyright a {
    color: var(--alien-secondary);
}

.footer-legal {
    font-size: 0.875rem;
}

.legal-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1.5rem;
    justify-content: flex-end;
}

.legal-links a {
    color: var(--text-muted);
}

.legal-links a:hover {
    color: var(--text-primary);
}

@media (max-width: 767px) {
    .footer-legal {
        text-align: center;
        margin-top: 1rem;
    }
    .legal-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--alien-primary);
    border-radius: 50%;
    color: white;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: 999;
    box-shadow: var(--shadow-glow);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--alien-primary-hover);
    transform: translateY(-5px);
    color: white;
}

/* ============================================
   EMAIL VERIFICATION BANNER
   ============================================ */
.email-verification-banner {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(239, 68, 68, 0.2));
    border-bottom: 1px solid rgba(245, 158, 11, 0.3);
    padding: 0.75rem 0;
}

.verification-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.verification-icon {
    color: var(--warning);
    font-size: 1.25rem;
}

.verification-message {
    flex: 1;
    color: var(--text-primary);
}

.verification-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.close-btn {
    color: var(--text-secondary);
    padding: 0.25rem;
}

.close-btn:hover {
    color: var(--text-primary);
}

@media (max-width: 767px) {
    .verification-content {
        flex-wrap: wrap;
    }
}

/* ============================================
   LOADING OVERLAY
   ============================================ */
#fullpage-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
}

#fullpage-overlay.visible {
    opacity: 1;
    visibility: visible;
}

#fullpage-overlay.hidden {
    display: none;
}

.overlay-wrapper {
    text-align: center;
}

.overlay-content {
    color: var(--text-primary);
}

.loader-spinner {
    color: var(--alien-primary);
    margin-bottom: 1rem;
}

.loader-msg {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--alien-dark);
    border: 1px solid var(--border-color-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    opacity: 0;
    transition: all var(--transition-normal);
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-success {
    border-left: 4px solid var(--success);
}

.toast-success i {
    color: var(--success);
}

.toast-error {
    border-left: 4px solid var(--danger);
}

.toast-error i {
    color: var(--danger);
}

.toast-warning {
    border-left: 4px solid var(--warning);
}

.toast-warning i {
    color: var(--warning);
}

.toast-info {
    border-left: 4px solid var(--info);
}

.toast-info i {
    color: var(--info);
}

.toast-message {
    flex: 1;
    color: var(--text-primary);
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.toast-close:hover {
    color: var(--text-primary);
}
