/* =====================================================
   Like & Report System Styles
   ===================================================== */

/* Like Button */
.like-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.like-btn.liked .heart-icon {
    fill: #ef4444;
    stroke: #ef4444;
    animation: likeAnimation 0.3s ease;
}

.like-btn:hover .heart-icon {
    transform: scale(1.1);
}

@keyframes likeAnimation {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

/* Report Dialog Overlay */
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.85);
    /* Solid fallback */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2147483647;
    /* Maximum z-index */
    padding: 20px;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Dialog Box */
.dialog {
    background-color: #1a1a1a;
    /* Fallback dark bg */
    background-color: var(--bg-surface, #1a1a1a);
    border: 1px solid #333;
    border-color: var(--border-color, #333);
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
    margin: auto;
    position: relative;
    z-index: 2147483647;
}

.dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 16px;
    border-bottom: 1px solid var(--border-color);
}

.dialog-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.dialog-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
    color: var(--text-muted);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s;
}

.dialog-close:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

/* Dialog Form */
.dialog form {
    padding: 24px;
}

.dialog .form-group {
    margin-bottom: 20px;
}

.dialog .form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.dialog select,
.dialog textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-family: inherit;
    transition: all 0.2s;
}

.dialog select:focus,
.dialog textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    outline: none;
}

.dialog textarea {
    resize: vertical;
    min-height: 100px;
}

.dialog select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23a1a1aa'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

/* Dialog Actions */
.dialog-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.dialog-actions .btn {
    flex: 1;
    justify-content: center;
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    color: var(--text-primary);
    font-size: 0.9375rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    max-width: 400px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-success {
    border-color: var(--success);
    background: rgba(34, 197, 94, 0.1);
}

.toast-error {
    border-color: var(--error);
    background: rgba(239, 68, 68, 0.1);
}

.toast-info {
    border-color: var(--primary);
    background: var(--primary-glow);
}

/* Responsive: Dialog */
@media (max-width: 640px) {
    .dialog {
        max-width: 100%;
        margin: 0;
        border-radius: var(--radius-lg);
    }

    .dialog-actions {
        flex-direction: column;
    }

    .toast {
        left: 20px;
        right: 20px;
        bottom: 20px;
    }
}