/* walls/static/walls/css/author_card.css - Author Info Card Styles */

.author-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.author-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-card h3 i {
    color: #667eea;
}

/* Author Avatar */
.author-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 4px solid #667eea;
    box-shadow: 0 4px 12px rgba(102,126,234,0.3);
}

.author-avatar-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 40px;
    font-weight: 700;
    margin: 0 auto 15px;
    box-shadow: 0 4px 12px rgba(102,126,234,0.3);
}

/* Author Name */
.author-name {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
}

.author-username {
    margin: 0 0 5px 0;
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* Verification Badge */
.verification-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 12px;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

/* Author Bio */
.author-bio {
    margin: 15px 0;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
    text-align: center;
}

/* Author Stats Grid */
.author-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 15px 0;
    padding: 15px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.author-stat-item {
    text-align: center;
}

.author-stat-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #667eea;
    display: block;
}

.author-stat-label {
    font-size: 0.75rem;
    color: #7f8c8d;
    display: block;
}

/* Action Buttons */
.author-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.profile-btn {
    display: block;
    padding: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s;
}

.profile-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102,126,234,0.4);
    color: white;
}

.follow-btn {
    padding: 10px;
    background: white;
    border: 2px solid #667eea;
    color: #667eea;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.follow-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102,126,234,0.3);
}

.follow-btn.following {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

.gift-rose-btn {
    padding: 10px;
    background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.gift-rose-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(236,72,153,0.4);
}

.gift-rose-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.gift-rose-btn:active::before {
    width: 300px;
    height: 300px;
}

/* Rose Icon Animation */
.gift-rose-btn i {
    display: inline-block;
    transition: transform 0.3s;
}

.gift-rose-btn:hover i {
    transform: rotate(15deg) scale(1.2);
}

/* Responsive */
@media (max-width: 768px) {
    .author-avatar-large,
    .author-avatar-placeholder {
        width: 80px;
        height: 80px;
        font-size: 32px;
    }
    
    .author-name {
        font-size: 1.1rem;
    }
    
    .author-stats-grid {
        gap: 5px;
    }
    
    .author-stat-value {
        font-size: 1.1rem;
    }
    
    .author-stat-label {
        font-size: 0.7rem;
    }
}

/* Loading State */
.author-card.loading {
    opacity: 0.6;
    pointer-events: none;
}

.author-card.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Success Animation */
@keyframes successPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.gift-rose-btn.success {
    animation: successPulse 0.5s ease;
}

/* Tooltip */
.author-card [data-tooltip] {
    position: relative;
    cursor: help;
}

.author-card [data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 10px;
    background: #2c3e50;
    color: white;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    margin-bottom: 5px;
}

.author-card [data-tooltip]:hover::after {
    opacity: 1;
}
