/*
 * Responsive styles for quotes
 */

/* Tablets and below */
@media (max-width: 992px) {
    .authors-grid,
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    
    .quote-card-compact {
        padding: 18px;
    }
    
    .author-image-wrapper {
        width: 50px;
        height: 50px;
    }
    
    .author-initial {
        font-size: 20px;
    }
    
    .quote-full-text {
        font-size: 14px;
    }
    
    .quote-mark {
        font-size: 28px;
    }
    
    .quote-actions-bottom-parallel {
        gap: 12px;
        padding: 3px 6px;
        right: 15px;
        bottom: 18px;
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    .quote-card-compact {
        flex-direction: row;
        align-items: flex-start;
        padding: 18px;
        margin-bottom: 12px;
        position: relative;
        min-height: 110px;
    }
    
    .author-image-link {
        margin-right: 15px;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .author-image-wrapper {
        width: 50px;
        height: 50px;
    }
    
    .author-initial {
        font-size: 20px;
    }
    
    .quote-content-wrapper {
        width: 100%;
        padding-right: 0;
    }
    
    .quote-text-compact {
        justify-content: flex-start;
        margin-bottom: 8px;
        width: 100%;
    }
    
    .quote-full-text {
        text-align: left;
        font-size: 14px;
        width: 100%;
        margin-right: 0;
        padding-right: 0;
    }
    
    .quote-mark {
        font-size: 28px;
        line-height: 0.7;
    }
    
    .quote-actions-bottom-parallel {
        position: absolute;
        bottom: 18px;
        right: 15px;
        gap: 12px;
        padding: 3px 6px;
        box-shadow: 0 0px 0px rgba(0,0,0,0.05);
    }
    
    .like-count-number {
        font-size: 9px !important;
    }
    
    .like-label-small {
        font-size: 9px !important;
    }
    
    .view-quote-btn-small,
    .like-btn-small,
    .share-btn-small {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
    
    .share-options {
        min-width: 140px;
        font-size: 12px;
    }
    
    .share-option {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .quote-meta {
        justify-content: flex-start;
        width: 100%;
    }
    
    .quote-tags {
        justify-content: flex-start;
        width: 100%;
    }
    
    /* Search box mobile */
    .gr-form.gr-form--compact.gr-form--fullWidth {
        flex-direction: row !important;
        gap: 0 !important;
        position: relative !important;
    }
    
    .searchBox--large__input {
        width: 100% !important;
        min-width: auto !important;
        height: 40px !important;
        line-height: 40px !important;
        padding-right: 45px !important;
        border-radius: 6px !important;
        padding-left: 15px !important;
    }
    
    .searchBox__button.searchBox--large__button {
        display: none !important;
    }
    
    .gr-form.gr-form--compact.gr-form--fullWidth::after {
        content: "" !important;
        position: absolute !important;
        right: 12px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 20px !important;
        height: 20px !important;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%230073aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E") !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        background-size: contain !important;
        cursor: pointer !important;
        pointer-events: none !important;
        opacity: 0.7 !important;
        transition: opacity 0.2s ease !important;
        z-index: 2 !important;
    }
    
    /* Tabs mobile */
    .mediumTabs {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .tab {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    /* Bookmarked quotes mobile */
    .bookmarked-quote-item {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .bookmarked-quote-content {
        margin-right: 0;
    }
    
    .bookmarked-quote-actions {
        justify-content: flex-end;
    }
}

/* Extra small mobile */
@media (max-width: 480px) {
    .quote-card-compact {
        padding: 15px;
        min-height: 100px;
    }
    
    .author-image-link {
        margin-right: 12px;
    }
    
    .author-image-wrapper {
        width: 45px;
        height: 45px;
    }
    
    .author-initial {
        font-size: 18px;
    }
    
    .quote-content-wrapper {
        width: 100%;
    }
    
    .quote-full-text {
        font-size: 13px;
        line-height: 1.5;
        width: 100%;
    }
    
    .quote-mark {
        font-size: 24px;
        line-height: 0.6;
    }
    
    .quote-author {
        font-size: 12px;
    }
    
    .book-reference {
        font-size: 11px;
    }
    
    .quote-tag {
        font-size: 10px;
        padding: 1px 6px;
    }
    
    .quote-actions-bottom-parallel {
        bottom: 15px;
        right: 12px;
        gap: 10px;
        padding: 2px 5px;
    }
    
    .like-count-number {
        font-size: 9px !important;
    }
    
    .like-label-small {
        font-size: 8px !important;
    }
    
    .action-buttons-small {
        gap: 4px;
    }
    
    .view-quote-btn-small,
    .like-btn-small,
    .share-btn-small {
        width: 22px;
        height: 22px;
        font-size: 11px;
    }
    
    .share-options {
        min-width: 120px;
        right: -40px;
    }
    
    .share-option {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    /* Search box extra small */
    .searchBox--large__input {
        height: 36px !important;
        line-height: 36px !important;
        font-size: 13px !important;
        padding-right: 40px !important;
        padding-left: 12px !important;
    }
    
    .searchBox--large__input::placeholder {
        font-size: 13px !important;
    }
    
    .gr-form.gr-form--compact.gr-form--fullWidth::after {
        width: 18px !important;
        height: 18px !important;
        right: 10px !important;
    }
    
    /* Filter grids */
    .authors-grid,
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    /* Notifications mobile */
    .bookmark-notification,
    .like-notification,
    .share-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        text-align: center;
    }
}

/* Large screens */
@media (min-width: 1200px) {
    .quotes-container {
        max-width: 1400px;
    }
    
    .quote-card-compact {
        padding: 25px;
    }
    
    .author-image-wrapper {
        width: 70px;
        height: 70px;
    }
    
    .author-initial {
        font-size: 28px;
    }
    
    .quote-full-text {
        font-size: 16px;
    }
    
    .quote-mark {
        font-size: 36px;
    }
}

/* Print styles */
@media print {
    .quote-actions-bottom-parallel,
    .bookmarked-quote-actions,
    .bookmarks-header .clear-all-bookmarks,
    .share-options,
    .search-box,
    .mediumTabs,
    .filter-section {
        display: none !important;
    }
    
    .quote-card-compact,
    .bookmarked-quote-item {
        break-inside: avoid;
        page-break-inside: avoid;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
    }
}


/*autor page*/

@media (max-width: 768px) {
    .author-header {
        flex-direction: column;
        text-align: start;
        padding: 30px 20px;
        gap: 30px;
    }
    
    .author-header-image,
    .author-archive-image.placeholder {
        width: 180px;
        height: 180px;
        margin: 0 auto;
    }
    
    .author-title {
        font-size: 32px;
    }
    
    .author-meta-details {
        flex-direction: column;
        gap: 15px;
    }
    
    .author-meta-item {
        min-width: 100%;
    }
    
    .related-authors-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
}