/**
 * Follower requests and modal styles for TripGoGo
 * Handles modals, forms, and follower request UI
 */

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: none;
}

.modal.hidden {
    display: none;
}

.modal.active,
.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--white);
    margin: 10% auto;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    color: var(--neutral-dark);
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--support-2);
}

.modal-body {
    padding: 2rem;
}

.search-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.search-form input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    font-size: 0.9rem;
}

.search-result {
    margin-top: 1rem;
}

.error-message {
    padding: 1rem;
    background-color: #fee;
    border: 1px solid #fcc;
    border-radius: 8px;
    color: #c33;
    margin: 0;
}

.success-message {
    padding: 1rem;
    background-color: #efe;
    border: 1px solid #cfc;
    border-radius: 8px;
    color: #3c3;
    margin: 0;
}

.modal-success-message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    color: #155724;
    margin-top: 1rem;
}

.modal-success-message i {
    color: #28a745;
    font-size: 1.2rem;
}

.modal-success-message.hidden {
    display: none;
}

/* Success Message Styles */
.success-message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    font-size: 0.9rem;
    animation: slideIn 0.3s ease-out;
}

.success-message i {
    color: #28a745;
    font-size: 1.1rem;
}

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

/* Follower Action Button Styles */
.follower-action-btn {
    position: relative;
    transition: all 0.3s ease;
}

.friend-action-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Profile Actions container */
.profile-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Profile-specific button overrides */
.profile-actions .btn-primary {
    background-color: var(--accent);
    border-color: var(--accent);
    color: white;
}

.profile-actions .btn-primary:hover {
    background-color: #e6a000;
    border-color: #e6a000;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }

    .search-form {
        flex-direction: column;
    }

    .profile-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .profile-actions .btn {
        justify-content: center;
    }
}
