/**
 * Enhanced Business Quotes Styles
 * Modern, accessible styles for improved quote functionality
 */

/* ===== QUOTES HERO SECTION ===== */
.quotes-hero {
    background-image: url('../images/Business%20quote.jpg');
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed;
    color: white;
    padding: var(--space-20) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quotes-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

.quotes-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.quotes-hero__title {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.quotes-hero__subtitle {
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

/* ===== ENHANCED QUOTE ACTIONS ===== */
.quote-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    justify-content: center;
    margin-top: var(--space-6);
}

.quote-actions .btn {
    min-width: 120px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.quote-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.quote-actions .btn:active {
    transform: translateY(0);
}

/* ===== MODAL SYSTEM ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: var(--space-4);
}

.modal-container {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-6) var(--space-6) var(--space-4);
    border-bottom: 1px solid var(--border-light);
}

.modal-header h3 {
    margin: 0;
    color: var(--text-brand);
}

.modal-close {
    background: none;
    border: none;
    font-size: var(--text-xl);
    color: var(--text-muted);
    cursor: pointer;
    padding: var(--space-2);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--bg-muted);
    color: var(--text-primary);
}

.modal-body {
    padding: var(--space-6);
}

/* ===== SHARE MODAL STYLES ===== */
.share-options {
    text-align: center;
}

.quote-preview {
    margin: var(--space-4) 0;
    padding: var(--space-4);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-500);
}

.quote-preview blockquote {
    font-style: italic;
    font-size: var(--text-lg);
    margin: 0 0 var(--space-2);
    color: var(--text-primary);
}

.quote-preview cite {
    font-weight: 600;
    color: var(--text-brand);
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--space-3);
    margin: var(--space-4) 0;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white;
}

.share-btn.twitter { background: #1da1f2; }
.share-btn.facebook { background: #4267b2; }
.share-btn.linkedin { background: #0077b5; }
.share-btn.whatsapp { background: #25d366; }

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

.copy-section {
    margin-top: var(--space-4);
    text-align: left;
}

.copy-section label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: 500;
}

.copy-input-group {
    display: flex;
    gap: var(--space-2);
}

.copy-input {
    flex: 1;
    padding: var(--space-3);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
}

.copy-btn {
    white-space: nowrap;
}

/* ===== FORM STYLES ===== */
.quote-form {
    max-width: none;
}

.form-group {
    margin-bottom: var(--space-4);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: 600;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: var(--space-3);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: var(--text-base);
    transition: all 0.3s ease;
    font-family: var(--font-primary);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(241, 167, 59, 0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-3);
    margin-top: var(--space-6);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-light);
}

/* ===== NOTIFICATION SYSTEM ===== */
.notification {
    position: fixed;
    top: var(--space-4);
    right: var(--space-4);
    z-index: 10000;
    max-width: 400px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 1;
    transition: all 0.3s ease;
    animation: slideInRight 0.3s ease;
}

.notification--success {
    background: var(--color-success);
    color: white;
}

.notification--error {
    background: var(--color-error);
    color: white;
}

.notification--warning {
    background: var(--color-warning);
    color: white;
}

.notification--info {
    background: var(--color-info);
    color: white;
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4);
    gap: var(--space-3);
}

.notification-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: var(--space-1);
    border-radius: var(--radius-sm);
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.notification-close:hover {
    opacity: 1;
}

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

/* ===== ENHANCED QUOTE DISPLAY ===== */
.featured-quote__card {
    position: relative;
    overflow: hidden;
}

.featured-quote__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-500), var(--secondary-500));
}

.quote-text {
    position: relative;
    font-size: var(--text-xl);
    line-height: 1.6;
    color: var(--text-primary);
    margin: var(--space-4) 0;
}

.quote-attribution {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-light);
}

.quote-author strong {
    color: var(--text-brand);
    font-size: var(--text-lg);
}

.quote-company {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    display: block;
    margin-top: var(--space-1);
}

.category-tag {
    background: var(--primary-100);
    color: var(--primary-800);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    font-weight: 500;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .quotes-hero {
        padding: 4rem 0 2rem;
        background-attachment: scroll;
        min-height: 50vh;
    }
    
    .quotes-hero__title {
        font-size: 2.5rem;
    }
    
    .quotes-hero__subtitle {
        font-size: 1.1rem;
    }
    
    .quotes-hero__meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .featured-quote__card {
        padding: 2rem 1.5rem;
    }
    
    .quote-text {
        font-size: 1.5rem;
    }
    
    .quote-actions {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-2);
    }
    
    .quote-actions .btn {
        width: 100%;
        min-width: auto;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }
    
    .category-card {
        padding: var(--space-4);
    }
    
    .quotes-slider {
        padding: var(--space-4);
    }
    
    .quote-slide {
        padding: var(--space-4);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .share-buttons {
        grid-template-columns: 1fr 1fr;
    }
    
    .copy-input-group {
        flex-direction: column;
    }
    
    .copy-btn {
        width: 100%;
    }
    
    .form-actions {
        flex-direction: column-reverse;
    }
    
    .notification {
        top: var(--space-2);
        right: var(--space-2);
        left: var(--space-2);
        max-width: none;
    }
    
    .modal-container {
        max-width: 95%;
        margin: var(--space-4);
        max-height: calc(100vh - var(--space-4));
    }
    
    .modal-header {
        padding: var(--space-4);
    }
    
    .modal-body {
        padding: var(--space-4);
    }
}

@media (max-width: 480px) {
    .quotes-hero__title {
        font-size: 2rem;
    }
    
    .quotes-hero__subtitle {
        font-size: 1rem;
    }
    
    .featured-quote__card {
        padding: 1.5rem 1rem;
    }
    
    .quote-text {
        font-size: 1.25rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-container {
        max-width: 100%;
        margin: var(--space-2);
        max-height: 95vh;
    }
    
    .share-buttons {
        grid-template-columns: 1fr;
    }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
.btn:focus,
.form-control:focus,
.modal-close:focus {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .modal-overlay,
    .modal-container,
    .notification,
    .btn,
    .share-btn {
        transition: none;
        animation: none;
    }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    .modal-overlay {
        background: rgba(0, 0, 0, 0.9);
    }
    
    .form-control {
        border-width: 3px;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}
