/* Frontend Styles for Pride Resources Manager */

#pride-resources-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

#pride-resources-wrapper .container-fluid {
    max-width: 100%;
    padding: 0 15px;
}

/* Navigation Styles */
#resourceNavWrapper {
    margin-bottom: 2rem;
}

#resourceNavWrapper .navbar {
    background-color: #f8f9fa !important;
    padding: 1rem 0;
    border-radius: 0;
}

#resourceNavWrapper .navbar-nav .nav-link {
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

#resourceNavWrapper .navbar-nav .nav-link:hover,
#resourceNavWrapper .navbar-nav .nav-link:focus {
    color: #007bff !important;
    text-decoration: none;
}

#resourceNavWrapper .navbar-nav .nav-link i,
#resourceNavWrapper .navbar-nav .nav-link .icon-svg {
    display: block;
    margin: 0 auto 0.25rem;
    width: 1.5em;
    height: 1.5em;
}

/* Section Styles */
#pride-resources-wrapper section {
    margin-bottom: 3rem;
}

#pride-resources-wrapper section h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#pride-resources-wrapper section h3 .icon {
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
}

#pride-resources-wrapper hr {
    border: none;
    border-top: 1px solid #dee2e6;
    margin: 2rem 0;
}

/* Resource Item Styles */
.resource-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.resource-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.resource-item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
}

.resource-item > div {
    flex: 1;
}

.resource-item h5 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.resource-item p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.resource-item a {
    color: #007bff;
    text-decoration: none;
}

.resource-item a:hover {
    text-decoration: underline;
}

.resource-contact {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.resource-contact p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.resource-contact strong {
    color: #333;
    font-weight: 600;
}

/* Alert Styles */
.alert {
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

.alert h5 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 0.375rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.btn-primary {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    color: #fff;
    background-color: #0056b3;
    border-color: #004085;
}

.btn-secondary {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-secondary:hover {
    color: #fff;
    background-color: #545b62;
    border-color: #4e555b;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    width: 100%;
    height: 100%;
    overflow: hidden;
    outline: 0;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal.fade {
    opacity: 0;
    transition: opacity 0.15s linear;
}

.modal.show {
    opacity: 1;
}

.modal-dialog {
    position: relative;
    width: auto;
    max-width: 500px;
    margin: 1.75rem;
    pointer-events: none;
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 0.3rem;
    outline: 0;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem;
    border-bottom: 1px solid #dee2e6;
}

.modal-title {
    margin-bottom: 0;
    line-height: 1.5;
}

.modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: 1rem;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0.75rem;
    border-top: 1px solid #dee2e6;
}

.close {
    float: right;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    opacity: 0.5;
}

.close:hover {
    color: #000;
    text-decoration: none;
    opacity: 0.75;
}

/* Form Styles */
.form-group {
    margin-bottom: 1rem;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    color: #495057;
    background-color: #fff;
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

label {
    display: inline-block;
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .resource-item {
        flex-direction: column;
        text-align: center;
    }
    
    .resource-item img {
        width: 60px;
        height: 60px;
        margin: 0 auto;
    }
    
    #pride-resources-wrapper section h3 {
        font-size: 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 0.25rem;
    }
    
    .modal-dialog {
        margin: 0.5rem;
    }
}

@media (max-width: 576px) {
    .container-fluid {
        padding: 0 10px;
    }
    
    .resource-item {
        padding: 1rem;
    }
    
    .alert {
        padding: 0.75rem 1rem;
    }
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

