/* Component Styles - Buttons, Cards, Modals */
/* This file contains all interactive UI components with responsive clamp() scaling */

/* ====================
   DOWNLOAD BUTTONS
   ==================== */

.download-button-primary {
    display: inline-flex;
    align-items: center;
    gap: clamp(8px, 1vw, 12px);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: clamp(12px, 1.5vw, 18px) clamp(25px, 4vw, 45px);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(1em, 1.1vw, 1.15em);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.download-button-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, #5a6fd8 0%, #667eea 100%);
}

.download-button-footer {
    display: inline-flex;
    align-items: center;
    gap: clamp(6px, 0.8vw, 10px);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: clamp(10px, 1.2vw, 14px) clamp(16px, 2.5vw, 24px);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.download-button-footer:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.download-button {
    display: inline-flex;
    align-items: center;
    gap: clamp(8px, 1vw, 12px);
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
    color: white;
    text-decoration: none;
    padding: clamp(12px, 1.5vw, 18px) clamp(25px, 3.5vw, 40px);
    border-radius: 35px;
    font-weight: bold;
    font-size: clamp(1em, 1.1vw, 1.15em);
    border: 3px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.download-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #19547b 0%, #ffd89b 100%);
}

.download-button i {
    font-size: 1.2em;
    animation: bounce 2s infinite;
}

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

/* ====================
   ACCESSIBILITY COMPONENTS
   ==================== */

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #667eea;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* ====================
   CONTACT BUTTONS
   ==================== */

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: clamp(4px, 0.6vw, 8px);
    padding: clamp(6px, 0.8vw, 10px) clamp(10px, 1.5vw, 18px);
    background: rgba(102, 126, 234, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-primary);
    font-size: clamp(0.8em, 0.9vw, 0.95em);
}

.contact-link:hover {
    background: rgba(102, 126, 234, 0.25);
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.email-link:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

/* ====================
   SOCIAL LINKS
   ==================== */

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(42px, 3.5vw, 52px);
    height: clamp(42px, 3.5vw, 52px);
    background: transparent;
    border: 2px solid;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: clamp(18px, 1.8vw, 24px);
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* LinkedIn - Always blue */
.social-link.linkedin {
    color: #0077b5;
    border-color: #0077b5;
}

.social-link.linkedin:hover {
    background: #0077b5;
    color: white;
}

/* GitHub - Dark in light mode, light in dark mode */
.social-link.github {
    color: #333;
    border-color: #333;
}

[data-theme="dark"] .social-link.github {
    color: #f0f6fc;
    border-color: #f0f6fc;
}

.social-link.github:hover {
    background: #333;
    border-color: #333;
    color: white;
}

[data-theme="dark"] .social-link.github:hover {
    background: #f0f6fc;
    border-color: #f0f6fc;
    color: #333;
}

/* Website - Always purple */
.social-link.website {
    color: #667eea;
    border-color: #667eea;
}

.social-link.website:hover {
    background: #667eea;
    color: white;
}

/* Facebook - Always blue */
.social-link.facebook {
    color: #1877f2;
    border-color: #1877f2;
}

.social-link.facebook:hover {
    background: #1877f2;
    color: white;
}

/* ====================
   SLIDESHOW CONTROLS
   ==================== */

.slide-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    width: clamp(32px, 3.5vw, 50px);
    height: clamp(32px, 3.5vw, 50px);
    border-radius: 50%;
    cursor: pointer;
    font-size: clamp(14px, 1.8vw, 24px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.slide-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.pause-play-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    width: clamp(28px, 3vw, 45px);
    height: clamp(28px, 3vw, 45px);
    border-radius: 50%;
    cursor: pointer;
    font-size: clamp(12px, 1.4vw, 18px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(102, 126, 234, 0.3);
}

.pause-play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

.pause-play-btn.paused {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.indicator {
    width: clamp(10px, 1.2vw, 16px);
    height: clamp(10px, 1.2vw, 16px);
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.indicator.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: white;
    transform: scale(1.2);
}

.indicator:hover {
    background: #764ba2;
    transform: scale(1.1);
}

/* ====================
   BACK TO TOP BUTTON
   ==================== */

.back-to-top {
    position: fixed;
    bottom: 35px;
    right: 35px;
    width: clamp(45px, 4vw, 58px);
    height: clamp(45px, 4vw, 58px);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: clamp(16px, 1.6vw, 22px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

/* ====================
   PWA BUTTONS
   ==================== */

.install-btn,
.update-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: clamp(6px, 0.8vw, 10px) clamp(12px, 1.6vw, 18px);
    border-radius: 6px;
    cursor: pointer;
    font-size: clamp(12px, 1.4vw, 16px);
    font-weight: 500;
    transition: all 0.3s ease;
}

.install-btn:hover,
.update-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* ====================
   FOCUS STATES
   ==================== */

.slide-btn:focus,
.pause-play-btn:focus,
.indicator:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.slide-btn:focus-visible,
.pause-play-btn:focus-visible,
.indicator:focus-visible,
.back-to-top:focus-visible {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}
