/**
 * MULTIPROPRITA Custom Styles
 */

/* Custom Colors */
:root {
    --italy-green: #009246;
    --italy-red: #ce2b37;
    --pearl-white: #f8f9fa;
    --pearl-90: rgba(248, 249, 250, 0.9);
}

/* Typography */
.hero-title {
    font-family: 'Bodoni Moda', serif;
}

.brand-title {
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: 0.02em;
}

/* Custom Button Styles */
.btn-tricolor {
    background: linear-gradient(90deg, var(--italy-green) 0%, #ffffff 50%, var(--italy-red) 100%);
    border: 1px solid var(--italy-green);
    color: #000;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-tricolor:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    color: #000;
}

/* Background Colors */
.bg-pearl {
    background-color: var(--pearl-white) !important;
}

.bg-pearl-90 {
    background-color: var(--pearl-90) !important;
}

/* Additional pearl variants */
.bg-pearl-80 {
    background-color: rgba(248, 249, 250, 0.8) !important;
}

/* Logo Flag */
.logo-flag {
    width: 24px;
    height: 16px;
    background: linear-gradient(90deg, var(--italy-green) 33.33%, #ffffff 33.33% 66.66%, var(--italy-red) 66.66%);
    border-radius: 2px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Tricolor Bar */
.tricolor-bar {
    height: 4px;
    background: linear-gradient(90deg, var(--italy-green) 33.33%, #ffffff 33.33% 66.66%, var(--italy-red) 66.66%);
}

/* Placeholder Styles */
.placeholder {
    background-color: #f8f9fa;
    border: 2px dashed #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 0.875rem;
    text-align: center;
    min-height: 200px;
}

.placeholder-text {
    padding: 1rem;
    font-style: italic;
}

.border-dashed {
    border-style: dashed !important;
}

/* Card Hover Effects */
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

/* Navigation Enhancements */
.navbar-brand:hover .logo-flag {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

/* Language Dropdown */
.dropdown-menu {
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
}

.dropdown-item:hover {
    background-color: var(--pearl-white);
}

.dropdown-item.active {
    background-color: var(--italy-green) !important;
    color: white !important;
}

.dropdown-item:focus,
.dropdown-item:active {
    background-color: var(--italy-green) !important;
    color: white !important;
}

/* Toast Notifications */
.toast {
    min-width: 300px;
}

.toast-body {
    font-size: 0.9rem;
}

/* Loading Spinner for Language Switch */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Language Switch Loading State */
.dropdown-item.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Form Styles */
.form-control:focus {
    border-color: var(--italy-green);
    box-shadow: 0 0 0 0.2rem rgba(0, 146, 70, 0.25);
}

.form-check-input:checked {
    background-color: var(--italy-green);
    border-color: var(--italy-green);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem !important;
    }

    .placeholder {
        min-height: 150px;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Loading State */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Smooth Transitions */
* {
    transition: color 0.2s ease, background-color 0.2s ease;
}

/* Custom Badge Styles */
.badge {
    font-weight: 500;
    letter-spacing: 0.025em;
}

/* Footer Styles */
footer {
    background-color: #ffffff;
    border-top: 1px solid #e9ecef;
}

footer .link-dark:hover {
    color: var(--italy-green) !important;
}

footer .link-secondary:hover {
    color: var(--italy-green) !important;
}
