/**
 * Components
 * Reusable UI components (buttons, cards, icons, etc.)
 */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-size-base);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 2px solid var(--primary-color);
    cursor: pointer;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.3), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--bg-dark);
    border-color: transparent;
}

.btn-primary:hover {
    box-shadow: var(--shadow-glow-strong);
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    box-shadow: var(--shadow-glow);
    transform: translateY(-3px);
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
    transform: translateY(-5px);
}

/* Social Icons */
.social-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--primary-color);
    font-size: var(--font-size-xl);
    transition: var(--transition);
    background: var(--bg-card);
    backdrop-filter: blur(10px);
}

.social-icon:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
    transform: translateY(-5px) rotate(360deg);
}

/* Tags */
.tag {
    padding: 0.4rem var(--spacing-sm);
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: var(--radius-xl);
    color: var(--primary-color);
    font-size: var(--font-size-sm);
    font-family: var(--font-code);
    transition: var(--transition);
    display: inline-block;
}

.tag:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
}

/* Stats Item */
.stat-item {
    text-align: center;
    padding: var(--spacing-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.stat-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
    transform: translateY(-5px);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-code);
    text-shadow:
        0 0 10px var(--primary-color),
        0 0 20px var(--primary-color);
    line-height: 1.2;
    min-height: 3rem;
    position: relative;
}

.stat-label {
    display: block;
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    margin-top: var(--spacing-xs);
}

/* Icon Containers */
.category-icon,
.achievement-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--bg-dark);
    margin-bottom: var(--spacing-md);
}

.achievement-icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    font-size: 2rem;
    margin: 0 auto var(--spacing-md);
}

/* Tech Icons */
.tech-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.tech-icon:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
    transform: translateY(-10px) rotate(10deg);
}

/* Skill Progress Bar */
.skill-bar {
    height: 8px;
    background: rgba(0, 255, 65, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    width: 0;
    transition: width 1.5s ease;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

/* Mouse Scroll Indicator */
.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-xl);
    position: relative;
    margin: 0 auto 10px;
}

.wheel {
    width: 4px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s ease-in-out infinite;
}

/* Loading States */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: var(--font-size-xs);
    font-weight: 600;
    background: var(--primary-color);
    color: var(--bg-dark);
    border-radius: var(--radius-full);
}

/* Divider */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin: var(--spacing-md) 0;
}

/* ===========================
   THEME SWITCHER
   =========================== */

.theme-switcher {
    position: fixed;
    top: 100px;
    right: 30px;
    z-index: var(--z-fixed);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.theme-toggle-btn {
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.theme-toggle-btn::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--primary-color), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.theme-toggle-btn:hover::before {
    opacity: 0.2;
}

.theme-toggle-btn i {
    color: var(--primary-color);
    font-size: 1.2rem;
    z-index: 1;
}

.theme-toggle-btn:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
    transform: scale(1.1) rotate(180deg);
}

.theme-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-options.active {
    max-height: 400px;
}

.theme-option {
    width: 45px;
    height: 45px;
    border-radius: var(--radius-full);
    cursor: pointer;
    border: 3px solid var(--bg-dark);
    transition: var(--transition);
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.theme-option::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: width 0.3s ease, height 0.3s ease;
}

.theme-option:hover::after {
    width: 100%;
    height: 100%;
}

.theme-option.active {
    border-color: white;
    box-shadow: 0 0 20px currentColor;
    transform: scale(1.15);
}

.theme-option:hover {
    transform: scale(1.2);
}

/* Individual Theme Colors */
.theme-option[data-theme="cyber-green"] {
    background: linear-gradient(135deg, #00ff41, #33ff33);
}

.theme-option[data-theme="neon-purple"] {
    background: linear-gradient(135deg, #b968ff, #ff6ec7);
}

.theme-option[data-theme="ocean-blue"] {
    background: linear-gradient(135deg, #00d4ff, #0088ff);
}

.theme-option[data-theme="sunset-orange"] {
    background: linear-gradient(135deg, #ff6b35, #ffaa00);
}

.theme-option[data-theme="electric-red"] {
    background: linear-gradient(135deg, #ff0055, #ff3366);
}

.theme-option[data-theme="cyber-yellow"] {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .theme-switcher {
        right: 15px;
        top: 80px;
    }

    .theme-toggle-btn {
        width: 45px;
        height: 45px;
    }

    .theme-option {
        width: 40px;
        height: 40px;
    }
}
