/* StarforgeMedia - Custom Styles */

:root {
    --primary-color: #ff6b35;
    --secondary-color: #004e89;
    --dark-color: #1a1a2e;
    --light-color: #f4f4f4;
}

body {
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

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

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #e55a2b;
    border-color: #e55a2b;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.media-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.media-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}

.media-item:hover img {
    transform: scale(1.05);
}

.media-type-badge {
    position: absolute;
    top: 10px;
    right: 10px;
}

.badge {
    font-weight: 500;
}

.progress {
    height: 20px;
    border-radius: 10px;
}

.progress-bar {
    background-color: var(--primary-color);
}

.alert {
    border-radius: 8px;
}

.table th {
    border-top: none;
}

.nav-tabs .nav-link {
    color: #495057;
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .media-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .navbar-text {
        text-align: center;
        width: 100%;
        margin-top: 10px;
    }
}

/* Loading spinner center */
.text-center.py-5 {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Gallery card improvements */
.card-title {
    color: var(--dark-color);
    font-weight: 600;
}

.card-text {
    color: #6c757d;
}

/* Modal improvements */
.modal-content {
    border-radius: 10px;
    border: none;
}

.modal-header {
    background-color: var(--light-color);
    border-radius: 10px 10px 0 0;
}

/* Form controls */
.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
}

/* Footer */
footer {
    margin-top: auto;
    background-color: var(--dark-color);
    color: white;
    padding: 20px 0;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}
