/* ===== ADAPTIVE ARTISTS RESPONSIVE STYLES ===== */

/* ===== TABLET AND SMALLER DESKTOP ===== */
@media (max-width: 991.98px) {
    .favorites-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mini-artwork {
        width: 60px;
        height: 60px;
    }
}

/* ===== TABLET ===== */
@media (max-width: 768px) {
    .aa-preview-banner {
        top: 64px;
        padding: 0.75rem 0;
    }
    
    .main-absolute .aa-hero {
        padding-top: 100px;
    }
    
    .aa-preview-banner .row {
        text-align: center;
    }
    
    .aa-preview-banner .col-lg-4 {
        margin-top: 1rem;
    }
    
    .aa-hero {
        background-attachment: scroll;
    }
    
    .aa-hero-stats {
        justify-content: center !important;
    }
    
    .aa-stat-item {
        margin: 0 1rem;
    }
    
    .aa-hero-actions {
        text-align: center;
    }
    
    .aa-hero-actions .btn {
        margin: 0.5rem;
        width: 100%;
        max-width: 300px;
    }
    
    .aa-placeholder-card::before {
        font-size: 0.6rem;
        padding: 0.2rem 0.4rem;
    }
    
    .aa-status-indicators {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .aa-form-card {
        padding: 2rem 1.5rem;
    }
    
    .aa-method-card {
        padding: 1.5rem;
    }
    
    .aa-method-icon-wrapper {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .aa-method-icon {
        font-size: 1.5rem;
    }
    
    .aa-social-links {
        gap: 1rem;
    }
    
    .aa-social-link {
        min-width: 100px;
        padding: 0.75rem;
    }
    
    .aa-social-icon {
        font-size: 1.5rem;
    }
    
    .about-highlight {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .about-icon {
        font-size: 2rem;
    }
    
    .value-icon-wrapper {
        width: 50px;
        height: 50px;
    }
    
    .value-icon {
        font-size: 1.25rem;
    }
    
    .process-step {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    /* Shoppe Page Responsive - Tablet */
    .aa-marketplace-toolbar .d-flex.justify-content-between {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-base);
    }

    .toolbar-right {
        width: 100%;
    }

    .toolbar-right .d-flex {
        flex-wrap: wrap;
        justify-content: flex-start;
        width: 100%;
    }
    
    .filter-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .price-filter .d-flex {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .price-filter input {
        width: 100% !important;
    }
    
    .marketplace-item .aa-card-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }
    
    .price-display {
        font-size: var(--text-lg);
    }
    
    .featured-artwork-carousel {
        min-height: 200px;
    }
    
    .featured-item {
        min-height: 60px;
    }
    
    .artwork-overlay {
        padding: var(--spacing-sm);
    }

    /* Mobile carousel adjustments */
    .aa-hero-image {
        min-height: 300px;
        aspect-ratio: 3/2;
    }
    
    .carousel-controls {
        padding: 0 var(--spacing-sm);
    }
    
    .carousel-control {
        width: 2rem;
        height: 2rem;
    }
    
    .carousel-indicators {
        bottom: var(--spacing-sm);
        gap: var(--spacing-xs);
    }
    
    .indicator {
        width: var(--spacing-xs);
        height: var(--spacing-xs);
    }
}

/* ===== MOBILE LANDSCAPE AND SMALL TABLET ===== */
@media (max-width: 767.98px) {
    .favorites-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.25rem;
    }

    .journey-piece {
        width: 45px;
        height: 45px;
    }

    .mini-artwork {
        width: 50px;
        height: 50px;
    }
}

/* ===== MOBILE PORTRAIT ===== */
@media (max-width: 576px) {
    .aa-form-card {
        padding: 1.5rem 1rem;
    }
    
    .aa-form-header h2 {
        font-size: 1.75rem;
    }
    
    .aa-hero-actions .btn {
        font-size: 0.9rem;
        padding: 0.75rem 1.5rem;
    }
    
    .aa-social-links {
        flex-direction: column;
        align-items: center;
    }
    
    .about-info-preview {
        gap: 1rem;
    }
    
    .value-icon-wrapper {
        width: 45px;
        height: 45px;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    /* Shoppe Page Responsive - Mobile */
    .aa-marketplace-toolbar {
        padding: var(--spacing-sm);
    }

    .toolbar-right .d-flex {
        flex-direction: column;
        align-items: stretch;
        gap: var(--spacing-sm);
    }

    .toolbar-right .d-flex > div {
        width: 100%;
    }

    .search-section .input-group {
        flex-direction: column;
    }
    
    .aa-search-input {
        border-radius: var(--spacing-sm);
        margin-bottom: var(--spacing-sm);
    }
    
    .aa-search-input + .btn {
        border-radius: var(--spacing-sm);
        border: 2px solid var(--aa-primary);
        width: 100%;
    }
    
    .filter-section {
        gap: var(--spacing-sm);
    }
    
    .aa-active-filters-bar {
        padding: var(--spacing-sm);
    }
    
    .aa-filter-badge {
        font-size: var(--text-xs);
        padding: var(--spacing-xxs) var(--spacing-sm);
    }
    
    .aa-results-summary {
        padding: var(--spacing-sm) var(--spacing-sm);
        font-size: var(--text-sm);
    }
    
    .marketplace-item .aa-card-image {
        height: 200px;
    }
    
    .price-display {
        font-size: var(--text-base);
    }
    
    .pagination .page-link {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: var(--text-sm);
    }

    /* Very small mobile carousel */
    .aa-hero-image {
        min-height: 250px;
    }
    
    .featured-artwork-image {
        width: calc(100% - var(--spacing-base));
        height: calc(100% - var(--spacing-base));
        margin: var(--spacing-sm);
    }
    
    .artwork-details-overlay,
    .artwork-info-overlay {
        padding: var(--spacing-sm) var(--spacing-sm) var(--spacing-base);
    }
    
    .artwork-title {
        font-size: var(--text-xs);
    }
    
    .artist-name,
    .item-price {
        font-size: var(--text-xxs);
    }
}

/* ===== EXTRA SMALL MOBILE ===== */
@media (max-width: 480px) {
    .aa-hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .aa-stat-item {
        margin: 0;
    }
    
    .aa-method-card {
        padding: 1rem;
    }
    
    .aa-method-icon-wrapper {
        width: 50px;
        height: 50px;
    }
    
    .aa-method-icon {
        font-size: 1.25rem;
    }
    
    .aa-social-link {
        min-width: 80px;
        padding: 0.5rem;
    }
    
    .aa-social-icon {
        font-size: 1.25rem;
    }
    
    .aa-card-content {
        padding: 1rem;
    }
}

/* ===== LARGE DESKTOP AND UP ===== */
@media (min-width: 1200px) {
    .aa-artists-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .aa-form-card {
        padding: 4rem;
    }
    
    .aa-method-card {
        padding: 2.5rem;
    }
    
    .aa-method-icon-wrapper {
        width: 100px;
        height: 100px;
    }
    
    .aa-method-icon {
        font-size: 2.5rem;
    }
}

/* ===== EXTRA LARGE DESKTOP ===== */
@media (min-width: 1400px) {
    .aa-artists-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .favorites-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===== RESPONSIVE COMPONENT ADJUSTMENTS ===== */

/* Artist Cards Responsive */
@media (max-width: 1200px) {
    .aa-artist-card-container {
        min-height: 350px;
    }
}

@media (max-width: 768px) {
    .aa-artists-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .aa-artist-card-container {
        min-height: 300px;
    }
    
    .aa-artist-card-body {
        padding: 0.75rem;
    }
    
    .aa-artwork-panel {
        width: 90%;
    }
}

@media (max-width: 576px) {
    .aa-artist-card-container {
        min-height: 280px;
    }
    
    .aa-artist-card-body {
        padding: 0.5rem;
    }
    
    .aa-artwork-panel {
        width: 95%;
    }
    
    .aa-panel-content {
        padding: 0.75rem;
    }
    
    .aa-artwork-item {
        min-width: 150px;
    }
    
    .aa-artwork-image-wrapper {
        height: 150px;
    }
}

/* Filter and Toolbar Responsive */
@media (max-width: 768px) {
    .aa-artists-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .toolbar-left,
    .toolbar-right {
        width: 100%;
        justify-content: center;
    }
    
    .aa-sort-select {
        min-width: auto;
        width: 100%;
    }
    
    .aa-filter-button {
        width: 100%;
        padding: 0.75rem;
    }
}

/* Tags Display Responsive */
@media (max-width: 576px) {
    .aa-tags-list {
        gap: 0.125rem;
    }
    
    .aa-tag {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }
    
    .aa-tag-remove {
        width: 14px;
        height: 14px;
        font-size: 0.6rem;
    }
}

/* Toast Responsive */
@media (max-width: 576px) {
    .aa-toast {
        top: 0.5rem;
        right: 0.5rem;
        left: 0.5rem;
        padding: 0.75rem;
    }
}

/* Navigation Responsive Adjustments */
@media (max-width: 576px) {
    .modern-nav-link {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
        margin: 0 0.125rem;
    }
    
    .nav-links-row {
        min-height: 40px;
        gap: 0.25rem;
        padding: 0.25rem 0.5rem 0 0.5rem;
    }
}

/* Print Styles */
@media print {
    .aa-hero {
        background-attachment: scroll !important;
    }
    
    .aa-card:hover {
        transform: none !important;
        box-shadow: none !important;
    }
    
    .aa-toast {
        display: none !important;
    }
    
    .aa-mobile-nav-header,
    .aa-mobile-nav-body,
    .offcanvas {
        display: none !important;
    }
    
    .modern-nav-bg {
        background: white !important;
        box-shadow: none !important;
    }
    
    .modern-nav-link {
        color: var(--aa-dark) !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .aa-card {
        border: 2px solid var(--aa-dark);
    }
    
    .aa-filter-badge {
        border: 1px solid white;
    }
    
    .aa-tag {
        border: 1px solid white;
    }
    
    .modern-nav-link {
        border: 1px solid transparent;
    }
    
    .modern-nav-link:hover,
    .modern-nav-link:focus {
        border-color: currentColor;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .aa-card:hover {
        transform: none;
    }
    
    .aa-artwork-clickable:hover {
        transform: none;
    }
    
    .aa-filter-badge:hover {
        transform: none;
    }
    
    .aa-method-card:hover {
        transform: none;
    }
}