/* F5 Beauty - Component Styles */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 48px;
    line-height: 1;
}

.btn-primary {
    background: #3A7BD5;
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2C5D9E, #7C6AE6);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(58, 123, 213, 0.4), 0 0 0 1px rgba(124, 106, 230, 0.2);
}

.btn-secondary {
    background: #7C6AE6;
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #5E4BC2, #7C6AE6);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124, 106, 230, 0.4);
}

.btn-outline {
    background: transparent;
    color: #3A7BD5;
    border: 1px solid #3A7BD5;
}

.btn-outline:hover {
    background: linear-gradient(135deg, rgba(58, 123, 213, 0.1), rgba(124, 106, 230, 0.1));
    color: #7C6AE6;
    border-color: #7C6AE6;
    box-shadow: 0 2px 8px rgba(124, 106, 230, 0.2);
}

.btn-ghost {
    background: transparent;
    color: #6B7280;
    border: 1px solid #E5E7EB;
}

.btn-ghost:hover {
    background: linear-gradient(135deg, #F9FAFB, rgba(124, 106, 230, 0.05));
    border-color: #7C6AE6;
    color: #7C6AE6;
    box-shadow: 0 2px 8px rgba(124, 106, 230, 0.15);
}

.btn-small {
    height: 40px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-large {
    height: 56px;
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Product Card */
.product-card {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(58, 123, 213, 0.15), 0 4px 6px -2px rgba(124, 106, 230, 0.1), 0 0 0 1px rgba(124, 106, 230, 0.1);
    border-color: linear-gradient(135deg, #3A7BD5, #7C6AE6);
}

.product-image {
    width: 100%;
    height: 240px;
    background: #F9FAFB;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #E5E7EB;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-placeholder {
    color: #9CA3AF;
    font-size: 3rem;
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #7C6AE6;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.product-badge.new {
    background: #10B981;
}

.product-badge.professional {
    background: linear-gradient(135deg, #3A7BD5, #7C6AE6);
    color: white;
}

.product-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #7C6AE6;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    position: relative;
}

.product-category::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 20px;
    height: 1px;
    background: linear-gradient(90deg, #7C6AE6, transparent);
}

.product-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-description {
    color: #6B7280;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-specs {
    list-style: none;
    margin-bottom: 1.5rem;
}

.product-specs li {
    color: #6B7280;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-specs li::before {
    content: '•';
    color: #7C6AE6;
    font-weight: bold;
    font-size: 1.2em;
}

.product-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
}

.btn-product {
    flex: 1;
    height: 40px;
    font-size: 0.875rem;
    border-radius: 6px;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: white;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: linear-gradient(135deg, #3A7BD5, #7C6AE6);
    box-shadow: 0 0 0 3px rgba(58, 123, 213, 0.1), 0 0 0 1px rgba(124, 106, 230, 0.2);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
    appearance: none;
}

.form-error {
    color: #EF4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: #EF4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-input.error + .form-error,
.form-select.error + .form-error,
.form-textarea.error + .form-error {
    display: block;
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #E5E7EB;
    border-top-color: #3A7BD5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid #E5E7EB;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 999;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu-content {
    padding: 1rem;
}

.mobile-nav-link {
    display: block;
    padding: 1rem;
    color: #374151;
    text-decoration: none;
    border-bottom: 1px solid #F3F4F6;
    font-weight: 500;
    transition: color 0.2s ease;
}

.mobile-nav-link:hover {
    color: #3A7BD5;
}

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

/* Notification */
.notification {
    position: fixed;
    top: 88px;
    right: 1rem;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 400px;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-left: 4px solid #10B981;
}

.notification.error {
    border-left: 4px solid #EF4444;
}

.notification.warning {
    border-left: 4px solid #F59E0B;
}

.notification.info {
    border-left: 4px solid #3A7BD5;
}

.notification-content {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.notification-icon {
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.notification-text {
    flex-grow: 1;
}

.notification-title {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.25rem;
}

.notification-message {
    color: #6B7280;
    font-size: 0.875rem;
    line-height: 1.4;
}

/* 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;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.rounded { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }

.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }

.transition { transition: all 0.2s ease; }
.transition-fast { transition: all 0.1s ease; }
.transition-slow { transition: all 0.3s ease; }

.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-100 { opacity: 1; }

.hidden { display: none; }
.block { display: block; }
.inline { display: inline; }
.inline-block { display: inline-block; }

.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

.animate-slideIn {
    animation: slideIn 0.6s ease-out;
}

/* Responsive Images */
.responsive-img {
    max-width: 100%;
    height: auto;
}

/* Print Styles */
@media print {
    .navbar,
    .mobile-menu,
    .notification {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .hero {
        background: white !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid #000;
    }
    
    .product-card {
        border-width: 2px;
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        border-width: 2px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}