/**
 * Author Page Styles
 * Styling for author/composer pages showing all greetings by a specific author
 */

/* ==========================================
   Author Header
   ========================================== */

.author-header {
    background: linear-gradient(135deg, #0066cc 0%, #02AFF3 100%);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
    display: flex;
    align-items: center;
    gap: 20px;
    color: #ffffff;
}

.author-header-icon {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    backdrop-filter: blur(10px);
}

.author-header-content {
    flex: 1;
}

.author-header h1 {
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.author-stats {
    margin: 0;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-stats i {
    font-size: 14px;
}

/* ==========================================
   Author Results Container
   ========================================== */

.author-results {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ==========================================
   Greeting Card (Author Page Variant)
   ========================================== */

.author-results .greetingCard {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(to left, #ffffff 0%, #f8fafe 100%);
    border: 2px solid #e0e8f0;
    border-radius: 12px;
    border-right: 4px solid #0066cc;
    margin-bottom: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    direction: rtl;
    position: relative;
}

.author-results .greetingCard:hover {
    border-right-color: #02AFF3;
    border-color: #b8d4f0;
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.15);
    transform: translateY(-3px);
    background: linear-gradient(to left, #ffffff 0%, #f0f8ff 100%);
}

/* Icon */
.author-results .greetingIcon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0066cc, #02AFF3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    box-shadow:
        0 4px 8px rgba(0, 102, 204, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.author-results .greetingCard:hover .greetingIcon {
    transform: scale(1.1) rotate(5deg);
    box-shadow:
        0 6px 12px rgba(0, 102, 204, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Content */
.author-results .greetingContent {
    flex: 1;
    min-width: 0;
    position: relative;
}

.author-results .greetingTitle {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.author-results .greetingTitle a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.author-results .greetingTitle a:hover {
    color: #0066cc;
}

.author-results .greetingPreview {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin: 0 0 15px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer */
.author-results .greetingFooter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 2px solid transparent;
    border-image: linear-gradient(to left,
        transparent 0%,
        rgba(0, 102, 204, 0.2) 20%,
        rgba(2, 175, 243, 0.3) 50%,
        rgba(0, 102, 204, 0.2) 80%,
        transparent 100%) 1;
    position: relative;
}

.author-results .greetingCard:hover .greetingFooter {
    border-image: linear-gradient(to left,
        transparent 0%,
        rgba(0, 102, 204, 0.4) 20%,
        rgba(2, 175, 243, 0.5) 50%,
        rgba(0, 102, 204, 0.4) 80%,
        transparent 100%) 1;
}

.author-results .greetingMeta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.author-results .metaItem {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
}

.author-results .metaItem i {
    color: #0066cc;
    font-size: 14px;
}

.author-results .readMore {
    font-size: 14px;
    font-weight: 500;
    color: #0066cc;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 20px;
    background: linear-gradient(135deg,
        rgba(0, 102, 204, 0.08),
        rgba(2, 175, 243, 0.08));
    border: 1px solid rgba(0, 102, 204, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.author-results .readMore::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent);
    transition: left 0.5s ease;
}

.author-results .readMore:hover {
    gap: 8px;
    background: linear-gradient(135deg, #0066cc, #02AFF3);
    color: white;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3);
    transform: translateX(-2px);
}

.author-results .readMore:hover::before {
    left: 100%;
}

.author-results .readMore i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.author-results .readMore:hover i {
    transform: translateX(-3px);
}

/* ==========================================
   Empty State
   ========================================== */

.author-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #e0e0e0;
}

.author-empty-state i {
    font-size: 60px;
    color: #ccc;
    margin-bottom: 20px;
}

.author-empty-state h3 {
    font-size: 20px;
    color: #666;
    margin: 0 0 10px 0;
}

.author-empty-state p {
    font-size: 16px;
    color: #999;
    margin: 0;
}

/* ==========================================
   Ads Spacing
   ========================================== */

.author-results #QueryAboveList,
.author-results .QueryInlineAd {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

/* ==========================================
   Mobile Responsive
   ========================================== */

@media (max-width: 767px) {
    /* Header */
    .author-header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .author-header-icon {
        width: 60px;
        height: 60px;
        font-size: 32px;
    }

    .author-header h1 {
        font-size: 22px;
    }

    .author-stats {
        font-size: 14px;
        justify-content: center;
    }

    /* Card */
    .author-results .greetingCard {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }

    .author-results .greetingIcon {
        width: 45px;
        height: 45px;
        font-size: 20px;
        align-self: flex-start;
    }

    .author-results .greetingTitle {
        font-size: 17px;
    }

    .author-results .greetingPreview {
        font-size: 14px;
    }

    .author-results .greetingFooter {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .author-results .greetingMeta {
        width: 100%;
    }

    .author-results .readMore {
        align-self: flex-end;
    }

    /* Empty state */
    .author-empty-state {
        padding: 40px 20px;
    }

    .author-empty-state i {
        font-size: 40px;
    }

    .author-empty-state h3 {
        font-size: 18px;
    }
}

@media (min-width: 768px) and (max-width: 1279px) {
    /* Tablet adjustments */
    .author-header {
        padding: 25px;
    }

    .author-header h1 {
        font-size: 24px;
    }

    .author-results .greetingCard {
        padding: 18px;
    }
}

/* ==========================================
   Print Styles
   ========================================== */

@media print {
    .author-header {
        background: #0066cc;
        box-shadow: none;
        border-radius: 0;
    }

    .author-results .greetingCard {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }

    .author-results .greetingCard:hover {
        transform: none;
    }

    .author-results #QueryAboveList,
    .author-results .QueryInlineAd {
        display: none;
    }
}
