/* Custom styles for Content Curation Website */

/* Content Card Styles */
.content-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.content-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Platform Icons */
.platform-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
}

.platform-youtube { background-color: #ff0000; }
.platform-facebook { background-color: #1877f2; }
.platform-blog { background-color: #10b981; }

/* Popularity Stars */
.popularity-stars {
    color: #fbbf24;
}

/* Animation for new content */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.new-content {
    animation: slideInUp 0.5s ease-out;
}

/* Loading spinner */
.spinner {
    border: 2px solid #f3f4f6;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

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

/* Empty state illustration */
.empty-state {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .content-card {
        margin-bottom: 1rem;
    }
    
    .grid-responsive {
        grid-template-columns: 1fr;
    }
}

/* Week selector highlight */
.week-active {
    background-color: #dbeafe;
    color: #1d4ed8;
    border-color: #3b82f6;
}

/* Tab navigation active state */
.tab-active {
    border-bottom-color: #3b82f6 !important;
    color: #1d4ed8 !important;
}

/* Form focus states */
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Success message */
.success-message {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

/* Error message */
.error-message {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

/* Content preview in cards */
.content-preview {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

/* Platform badges */
.platform-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.badge-youtube {
    background-color: #fef2f2;
    color: #dc2626;
}

.badge-facebook {
    background-color: #eff6ff;
    color: #1d4ed8;
}

.badge-blog {
    background-color: #ecfdf5;
    color: #059669;
}

/* Interactive buttons */
.interaction-btn {
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
    position: relative;
}

.interaction-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

.interaction-btn.view-btn:hover {
    border-color: #3b82f6;
    background-color: #eff6ff;
}

.interaction-btn.like-btn:hover {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.interaction-btn.animate-pulse {
    animation: pulse 0.5s ease-in-out;
}

/* Count animation */
.view-count, .like-count {
    transition: all 0.3s ease;
    min-width: 20px;
    text-align: center;
}

/* Click feedback animation */
@keyframes clickFeedback {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.interaction-btn.clicked {
    animation: clickFeedback 0.3s ease;
}

/* Ripple effect for buttons */
.interaction-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.interaction-btn:active::after {
    width: 100%;
    height: 100%;
}

/* Popularity score highlight */
.popularity-score {
    font-weight: 600;
    color: #1f2937;
}

/* Success message enhancement */
.success-message {
    max-width: 400px;
    line-height: 1.4;
}

/* More options menu */
.more-menu-container {
    position: relative;
}

.more-options-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.more-options-btn:hover {
    background-color: #f3f4f6;
    transform: scale(1.1);
}

.more-options-menu {
    min-width: 140px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.more-options-menu button {
    transition: all 0.2s ease;
}

.more-options-menu button:hover {
    background-color: #f9fafb;
}

/* Share platform buttons */
.share-platform-btn {
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.share-platform-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.share-platform-btn:active {
    transform: translateY(0);
}

/* Copy link button */
.copy-link-btn {
    position: relative;
    overflow: hidden;
}

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

.copy-link-btn:active::after {
    width: 100%;
    height: 100%;
}

/* Copy alert tooltip */
.copy-alert {
    animation: copyAlertSlide 0.3s ease;
    white-space: nowrap;
}

@keyframes copyAlertSlide {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Modal enhancements */
.modal-backdrop {
    backdrop-filter: blur(4px);
}

.modal-content {
    animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Delete button hover effect */
.delete-option:hover {
    background-color: #fef2f2 !important;
}

/* Share grid responsive */
@media (max-width: 480px) {
    .share-platform-btn {
        padding: 0.5rem;
    }
    
    .share-platform-btn i {
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
    }
    
    .share-platform-btn span {
        font-size: 0.75rem;
    }
}