@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&display=swap');

:root {
    --ubuntu-orange: #E95420;
    --ubuntu-purple: #77216F;
    --ubuntu-dark-grey: #3C3C3C;
    --ubuntu-light-grey: #ECECEC;
    --ubuntu-text-color: #F0F0F0;
    --ubuntu-bg-color: #2C001E; /* Darker background for a modern feel */
    --card-bg-color: #444444;
    --border-radius: 8px;
    --box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Ubuntu', sans-serif;
    background-color: var(--ubuntu-bg-color);
    color: var(--ubuntu-text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: var(--ubuntu-dark-grey);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--ubuntu-light-grey);
    font-weight: 500;
}

a {
    color: var(--ubuntu-orange);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--ubuntu-light-grey);
}

.btn {
    display: inline-block;
    background-color: var(--ubuntu-orange);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background-color: var(--ubuntu-purple);
    transform: translateY(-2px);
}

.btn-danger {
    background-color: #dc3545; /* Bootstrap default red */
}

.btn-danger:hover {
    background-color: #c82333;
}

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

.btn-primary:hover {
    background-color: var(--ubuntu-purple);
}

.card {
    background-color: var(--card-bg-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    color: var(--ubuntu-text-color);
}

.card-body {
    padding: 20px;
}

.form-control {
    background-color: var(--ubuntu-dark-grey);
    color: var(--ubuntu-text-color);
    border: 1px solid var(--ubuntu-orange);
    border-radius: 5px;
    padding: 10px;
    width: 100%;
    margin-bottom: 15px;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

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

.album-card, .photo-card {
    background-color: var(--card-bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.album-card:hover, .photo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.album-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.album-card h3 {
    margin: 15px 0;
    font-size: 1.2rem;
}

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

.photo-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Estilos para el Modal */
.modal-dialog.modal-lg {
    max-width: 95vw;
    margin: 0 auto;
}

.modal-content {
    background-color: rgba(0, 0, 0, 0.9); /* Darker, more opaque */
    border: none;
    border-radius: var(--border-radius);
}

.modal-body {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80vh;
    padding: 0;
}

.modal-body img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.8;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--ubuntu-orange); /* Ubuntu orange for controls */
    border-radius: 50%;
    padding: 15px;
}

/* Media Queries para Responsividad */
@media (max-width: 768px) {
    .container {
        margin: 10px auto;
        padding: 15px;
    }

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

    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }

    .modal-body {
        height: 70vh;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 8%;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        padding: 10px;
    }
}

@media (max-width: 576px) {
    .container {
        border-radius: 0;
        box-shadow: none;
    }

    .modal-dialog.modal-lg {
        max-width: 100vw;
        margin: 0;
    }

    .modal-content {
        height: 100vh;
        border-radius: 0;
    }

    .modal-body {
        height: calc(100vh - 50px);
    }

    .modal-header {
        padding: 10px;
    }

    .close {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .album-grid {
        grid-template-columns: 1fr;
    }

    .photo-grid {
        grid-template-columns: 1fr;
    }

    .album-card img,
    .photo-card img {
        height: auto;
    }

    .modal-body {
        height: 60vh;
    }
}
