/* === GLOWTOUCH CUSTOM STYLES === */
/* Additional styles for Tailwind CSS framework */

/* === CSS VARIABLES === */
:root {
    --primary: #E91E63;
    --accent: #FF6F91;
    --neutral: #F5F5F5;
    --text-dark: #212121;
    --text-light: #757575;
    --success: #10B981;
    --error: #EF4444;
    --warning: #F59E0B;
}

/* === TYPOGRAPHY === */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
}

/* === ACCESSIBILITY === */

/* Focus styles for keyboard navigation */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Skip to content link */
.sr-only:not(:focus):not(:active) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    body {
        color: #000;
        background: #FFF;
    }
}

/* === FORM STYLES === */

input[type="text"],
input[type="tel"],
input[type="email"],
textarea,
select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #E5E7EB;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #FFFFFF;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
    outline: none;
}

input.border-red-500,
textarea.border-red-500 {
    border-color: var(--error);
}

input:disabled,
textarea:disabled,
select:disabled {
    background-color: #F3F4F6;
    cursor: not-allowed;
    opacity: 0.6;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

/* Checkbox and radio custom styles */
input[type="checkbox"],
input[type="radio"] {
    width: 1.125rem;
    height: 1.125rem;
    border: 2px solid #D1D5DB;
    cursor: pointer;
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* === BUTTON STYLES === */

button,
.btn {
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

button:hover:not(:disabled),
.btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

button:active:not(:disabled),
.btn:active:not(:disabled) {
    transform: translateY(0);
}

button:disabled,
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* === CARD STYLES === */

.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* === GRADIENT TEXT === */

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* === ANIMATIONS === */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Fade-in on scroll (used with IntersectionObserver) */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === REDUCED MOTION === */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .fade-in {
        opacity: 1;
        transform: none;
    }
}

/* === MOBILE MENU === */

@media (max-width: 768px) {
    header nav ul.flex-col {
        padding: 1rem;
        gap: 1rem;
    }
    
    header nav ul.flex-col li {
        width: 100%;
        text-align: center;
        padding: 0.5rem 0;
    }
    
    header nav ul.flex-col li a {
        display: block;
        padding: 0.5rem 1rem;
    }
}

/* === ERROR MESSAGE STYLES === */

.error-message {
    font-size: 0.875rem;
    margin-top: 0.25rem;
    color: var(--error);
    font-weight: 500;
}

/* === UTILITY CLASSES === */

.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.text-shadow-lg {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.overlay-gradient {
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.8), rgba(255, 111, 145, 0.6));
}

.overlay-dark {
    background: rgba(0, 0, 0, 0.5);
}

/* Glass morphism effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* === LOADING SPINNER === */

.spinner {
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-left-color: var(--primary);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

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

/* === SCROLLBAR CUSTOM STYLES === */

/* For Webkit browsers (Chrome, Safari) */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--neutral);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* For Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--neutral);
}

/* === SELECTION COLOR === */

::selection {
    background-color: var(--primary);
    color: #FFFFFF;
}

::-moz-selection {
    background-color: var(--primary);
    color: #FFFFFF;
}

/* === PRINT STYLES === */

@media print {
    header, footer, nav {
        display: none;
    }
    
    body {
        font-size: 12pt;
        color: #000;
        background: #FFF;
    }
    
    a {
        text-decoration: underline;
        color: #000;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
}

/* === RESPONSIVE IMAGE CONTAINERS === */

.img-container {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
}

.img-container img {
    transition: transform 0.3s ease;
}

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

/* === ASPECT RATIO HELPERS === */

.aspect-16-9 {
    aspect-ratio: 16 / 9;
}

.aspect-4-3 {
    aspect-ratio: 4 / 3;
}

.aspect-1-1 {
    aspect-ratio: 1 / 1;
}

/* === DIVIDER === */

.divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary), transparent);
    margin: 2rem 0;
}

/* === BADGES === */

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.badge-primary {
    background-color: var(--primary);
    color: #FFFFFF;
}

.badge-accent {
    background-color: var(--accent);
    color: #FFFFFF;
}

.badge-success {
    background-color: var(--success);
    color: #FFFFFF;
}

/* === TOOLTIPS (simple) === */

[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    background-color: var(--text-dark);
    color: #FFFFFF;
    font-size: 0.875rem;
    white-space: nowrap;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
    z-index: 100;
}

/* === SMOOTH SCROLL BEHAVIOR === */

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
