/* Modern Components - public/styles/components.css */

/* Header Component */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 250, 250, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    min-height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo img {
    max-width: 6rem;
}

.logo-icon {
    color: var(--green);
    transition: transform 0.3s ease;
}

.logo:hover .logo-icon {
    transform: rotate(5deg);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray);
    letter-spacing: -0.02em;
}

.nav-desktop {
    display: flex;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--medium-gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 8px 0;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--gray);
}

.nav-link.active {
    color: var(--gray);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--green);
    border-radius: 1px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--gray);
    border-radius: 1px;
    transition: all 0.3s ease;
}

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

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

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

.nav-mobile {
    display: none;
    border-top: 1px solid var(--border-light);
    padding: 24px 0;
    background: var(--white);
}

.nav-mobile.active {
    display: block;
}

.nav-mobile-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-mobile-link {
    display: block;
    padding: 12px 0;
    color: var(--gray);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid var(--border-light);
    transition: color 0.2s ease;
}

.nav-mobile-link:hover {
    color: var(--green);
}

.nav-mobile-link:last-child {
    border-bottom: none;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm);
}

/* Hero Components */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(104, 247, 11, 0.1);
    color: var(--green);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 32px;
    border: 1px solid rgba(104, 247, 11, 0.2);
}

.gradient-text {
    background: linear-gradient(135deg, var(--green) 0%, #4ade80 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero-cta {
    background: var(--green);
    color: var(--gray);
    box-shadow: 0 4px 14px 0 rgba(104, 247, 11, 0.25);
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 rgba(104, 247, 11, 0.35);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--medium-gray);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

/* Phone Mockup Components */
.phone-container {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.phone-mockup {
    width: 280px;
    height: 580px;
    background: #1f2937;
    border-radius: 36px;
    padding: 8px;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 28px;
    overflow: hidden;
    position: relative;
}

.phone-screen::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    z-index: 1;
}

.app-interface {
    padding: 40px 20px 20px;
    height: 100%;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.app-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray);
}

.add-button {
    width: 32px;
    height: 32px;
    background: var(--green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray);
}

.item-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--light-gray);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.item.active {
    background: rgba(104, 247, 11, 0.1);
    border: 1px solid rgba(104, 247, 11, 0.2);
}

.item-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.item-icon.keys {
    background: #fbbf24;
}

.item-icon.wallet {
    background: #8b5cf6;
}

.item-icon.laptop {
    background: #06b6d4;
}

.item-icon::before {
    content: '🔑';
}

.item-icon.wallet::before {
    content: '💳';
}

.item-icon.laptop::before {
    content: '💻';
}

.item-details {
    flex: 1;
}

.item-name {
    font-weight: 600;
    color: var(--gray);
    font-size: 0.875rem;
}

.item-location {
    font-size: 0.75rem;
    color: var(--medium-gray);
    margin-top: 2px;
}

.item-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
}

/* Floating Indicators */
.floating-indicator {
    position: absolute;
    width: 48px;
    height: 48px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

.floating-indicator.location {
    top: 10%;
    right: -20px;
    color: var(--green);
    animation: pulse-location 3s ease-in-out infinite;
}

.floating-indicator.notification {
    top: 40%;
    left: -20px;
    color: #f59e0b;
    animation: bounce-notification 2s ease-in-out infinite;
}

.floating-indicator.shield {
    bottom: 20%;
    right: -10px;
    background: var(--green);
    color: white;
    animation: glow-shield 4s ease-in-out infinite;
}

/* Feature Cards */
.feature-card {
    display: flex;
    gap: 20px;
    padding: 32px;
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    position: relative;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(104, 247, 11, 0.2);
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    padding: 1px;
    background: linear-gradient(135deg, transparent 0%, rgba(104, 247, 11, 0.1) 50%, transparent 100%);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: subtract;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(104, 247, 11, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: var(--green);
    color: var(--gray);
    transform: scale(1.05);
}

.feature-content {
    flex: 1;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray);
    margin-bottom: 8px;
    line-height: 1.3;
}

.feature-description {
    color: var(--medium-gray);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Download Buttons */
.download-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: var(--gray);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    min-width: 180px;
    box-shadow: var(--shadow-sm);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.ios-btn {
    background: #000;
}

.android-btn {
    background: #1a73e8;
}

.download-btn-icon {
    flex-shrink: 0;
}

.download-btn-content {
    flex: 1;
}

.download-btn-label {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-bottom: 2px;
}

.download-btn-store {
    font-size: 1rem;
    font-weight: 600;
}

/* Check/X Icons */
.check-icon {
    width: 20px;
    height: 20px;
    background: rgba(104, 247, 11, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green);
    flex-shrink: 0;
}

.x-icon {
    width: 20px;
    height: 20px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ef4444;
    flex-shrink: 0;
}

.feature-check {
    width: 24px;
    height: 24px;
    background: rgba(104, 247, 11, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green);
    flex-shrink: 0;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

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

@keyframes bounce-notification {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes glow-shield {
    0%, 100% { box-shadow: var(--shadow-lg); }
    50% { box-shadow: 0 0 20px rgba(104, 247, 11, 0.4), var(--shadow-lg); }
}

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

@keyframes location-pulse {
    0% { opacity: 0.3; }
    33% { opacity: 1; }
    66% { opacity: 0.3; }
    100% { opacity: 0.3; }
}

@keyframes notification-bounce {
    0%, 90%, 100% { transform: translateY(0); }
    5% { transform: translateY(-8px); }
    10% { transform: translateY(0); }
}

@keyframes phone-float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(1deg); }
}

@keyframes logo-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes pulse-ring {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.5); }
}

@keyframes dot-pulse {
    0%, 80%, 100% { opacity: 0.3; }
    40% { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }
    
    .header-actions {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .header-content {
        min-height: 64px;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .phone-mockup {
        width: 260px;
        height: 540px;
    }
    
    .floating-indicator.location {
        right: 10px;
    }
    
    .floating-indicator.notification {
        left: 10px;
    }
    
    .feature-card {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }
    
    .feature-icon {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .stat-divider {
        display: none;
    }
}