/* H33 Shared Styles - v1.0.0 */

/* ===== Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #000;
    color: white;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ===== Navigation ===== */
.nav-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.nav-logo img {
    width: 40px;
    height: 40px;
}

.nav-logo span {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
}

.nav-link {
    color: #9ca3af;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #10b981;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

.nav-link.active {
    color: #10b981;
}

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

.nav-cta {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

/* ===== Hamburger Menu ===== */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: white;
    margin: 3px 0;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ===== Data Toggle ===== */
.data-toggle-wrapper {
    margin-left: 1rem;
    margin-right: 1rem;
}

.data-toggle {
    position: relative;
    display: inline-block;
    width: 180px;
    height: 36px;
}

.data-toggle:focus-within {
    outline: 2px solid #10b981;
    outline-offset: 2px;
    border-radius: 18px;
}

.data-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #dc2626, #991b1b);
    transition: all 0.3s ease;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    box-shadow: 0 2px 10px rgba(220, 38, 38, 0.3);
    overflow: hidden;
}

.toggle-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    transition: all 0.3s ease;
    user-select: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.toggle-label.off {
    color: white;
    opacity: 1;
}

.toggle-label.on {
    color: rgba(255, 255, 255, 0.5);
    opacity: 0.5;
}

.toggle-slider::after {
    content: "";
    position: absolute;
    height: 28px;
    width: 84px;
    left: 4px;
    top: 4px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    border-radius: 14px;
}

.data-toggle input:checked + .toggle-slider {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 2px 10px rgba(5, 150, 105, 0.3);
}

.data-toggle input:checked + .toggle-slider .toggle-label.off {
    color: rgba(255, 255, 255, 0.5);
    opacity: 0.5;
}

.data-toggle input:checked + .toggle-slider .toggle-label.on {
    color: white;
    opacity: 1;
}

.data-toggle input:checked + .toggle-slider::after {
    transform: translateX(88px);
    background: rgba(255, 255, 255, 0.15);
}

/* ===== Toast Notifications ===== */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    pointer-events: none;
}

.toast {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateX(400px);
    opacity: 0;
    animation: slideIn 0.3s ease forwards;
    pointer-events: all;
}

.toast.success {
    border-color: rgba(16, 185, 129, 0.5);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(0, 0, 0, 0.9));
}

.toast.error {
    border-color: rgba(220, 38, 38, 0.5);
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), rgba(0, 0, 0, 0.9));
}

.toast.info {
    border-color: rgba(59, 130, 246, 0.5);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(0, 0, 0, 0.9));
}

.toast-icon {
    font-size: 1.25rem;
}

.toast-message {
    flex: 1;
    color: white;
    font-size: 0.95rem;
}

.toast.hide {
    animation: slideOut 0.3s ease forwards;
}

@keyframes slideIn {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* ===== Privacy Indicator ===== */
.privacy-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
    display: none;
    align-items: center;
    gap: 0.5rem;
    z-index: 100;
    animation: pulse 2s ease infinite;
}

.privacy-indicator.active {
    display: flex;
}

.privacy-indicator.enabled {
    border-color: rgba(220, 38, 38, 0.5);
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), rgba(0, 0, 0, 0.9));
}

.privacy-indicator.disabled {
    border-color: rgba(16, 185, 129, 0.5);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(0, 0, 0, 0.9));
}

.privacy-indicator-icon {
    font-size: 1.25rem;
}

.privacy-indicator-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: white;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* ===== Tablet Responsive ===== */
@media (max-width: 1024px) {
    .nav-links {
        gap: 1rem;
    }
    
    .data-toggle {
        width: 160px;
    }
}

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
    .nav-header {
        padding: 1rem;
    }
    
    .nav-container {
        position: relative;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 2rem;
        gap: 1.5rem;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }
    
    .nav-links.active {
        transform: translateX(0);
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: 0.5rem 1rem;
    }
    
    .data-toggle-wrapper {
        margin: 1rem 0;
    }
    
    .data-toggle {
        width: 150px;
        height: 32px;
    }
    
    .toggle-slider {
        padding: 0 6px;
    }
    
    .toggle-label {
        font-size: 10px;
        letter-spacing: 0.3px;
    }
    
    .toggle-slider::after {
        width: 70px;
        height: 24px;
        left: 4px;
        top: 4px;
    }
    
    .data-toggle input:checked + .toggle-slider::after {
        transform: translateX(72px);
    }
    
    .nav-cta {
        margin-top: 1rem;
    }
    
    .toast-container {
        top: 70px;
        right: 10px;
        left: 10px;
    }
    
    .toast {
        min-width: auto;
        width: 100%;
    }
    
    .privacy-indicator {
        bottom: 10px;
        right: 10px;
        left: 10px;
        justify-content: center;
    }
}

/* ===== Small Mobile Responsive ===== */
@media (max-width: 480px) {
    .nav-header {
        padding: 0.75rem;
    }
    
    .nav-logo span {
        font-size: 1.25rem;
    }
    
    .nav-logo img {
        width: 35px;
        height: 35px;
    }
    
    .data-toggle {
        width: 130px;
        height: 28px;
    }
    
    .toggle-label {
        font-size: 9px;
        letter-spacing: 0.2px;
    }
    
    .toggle-slider::after {
        width: 60px;
        height: 20px;
        left: 3px;
        top: 3px;
    }
    
    .data-toggle input:checked + .toggle-slider::after {
        transform: translateX(64px);
    }
    
    .nav-cta {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* ===== Landscape Mobile ===== */
@media (max-width: 768px) and (orientation: landscape) {
    .nav-header {
        padding: 0.5rem 1rem;
    }
    
    .nav-links {
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        padding-top: 1rem;
    }
    
    .data-toggle {
        width: 140px;
        height: 28px;
    }
}

/* ===== Focus Styles for Accessibility ===== */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

/* ===== Skip to Content Link ===== */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: #10b981;
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    z-index: 10000;
    border-radius: 0 0 8px 0;
}

.skip-to-content:focus {
    top: 0;
}

/* ===== Loading Spinner ===== */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #10b981;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== Utility Classes ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

.text-gradient {
    background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}