/* =========================================================
   shanesspace.com Album Styles
   Used by:
   - album.html
   - album/2026.html

   Frontend-only version.
   Copilot backend note:
   - Later connect album cards, image grids, upload forms,
     and camera actions to Django models and routes.
   ========================================================= */


/* ---------- Album page containers ---------- */

.album-page-container,
.album-detail-container {
    padding-top: 30px;
    padding-bottom: 150px;
}

.album-page-heading,
.album-detail-heading {
    text-align: center;
    margin-bottom: 32px;
}

.album-page-heading h1,
.album-detail-heading h1 {
    font-size: 2.4rem;
    margin-bottom: 8px;
}

.album-page-heading p,
.album-detail-heading p {
    color: #4b5563;
}


/* ---------- Album landing cards ---------- */

.album-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin: 0 auto;
    max-width: 1050px;
}

.album-card-link {
    text-decoration: none;
    color: inherit;
}

.album-card {
    background-color: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #d1d5db;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.album-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.album-cover-image {
    width: 100%;
    height: 230px;
    background-color: #e5e7eb;
}

.album-cover-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Album card text */

.album-card-content {
    padding: 18px;
}

.album-card-content h2 {
    font-size: 1.4rem;
    margin-bottom: 4px;
    color: #111827;
}

.album-card-content p {
    color: #4b5563;
}


/* ---------- Single album page ---------- */

.back-to-albums-link {
    display: inline-block;
    margin-bottom: 18px;
    color: #2563eb;
    font-weight: bold;
    text-decoration: none;
}

.back-to-albums-link:hover {
    text-decoration: underline;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    max-width: 1100px;
    margin: 0 auto;
}

.photo-card {
    background-color: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    min-height: 210px;
    border: 1px solid #d1d5db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.photo-card img {
    width: 100%;
    height: 100%;
    min-height: 210px;
    object-fit: cover;
    display: block;
}


/* =========================================================
   Camera footer trigger button
   ========================================================= */

.camera-footer-button {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    border: none;
    border-radius: 22px;
    background-color: #ffffff;
    cursor: pointer;
    z-index: 1100;
    padding: 8px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.camera-footer-button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.camera-footer-button:hover {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.34);
}


/* =========================================================
   Camera footer panel
   ========================================================= */

.camera-footer {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%) translateY(110%);
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    background-color: #111827;
    color: #ffffff;
    z-index: 1200;
    box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.3);
    transition: transform 0.25s ease;
}

.camera-footer.footer-open {
    transform: translateX(-50%) translateY(0);
}

.camera-footer-inner {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px 0;
}

.footer-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.footer-top-row h2 {
    font-size: 1.5rem;
}

.close-footer-button {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background-color: #374151;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
}

.close-footer-button:hover {
    background-color: #4b5563;
}


/* ---------- Footer option buttons ---------- */

.camera-footer-options {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 18px;
}

.camera-option-button {
    min-width: 190px;
    padding: 11px 18px;
    border: none;
    border-radius: 8px;
    background-color: #2563eb;
    color: #ffffff;
    font-weight: bold;
    cursor: pointer;
}

.camera-option-button:hover {
    background-color: #1d4ed8;
}


/* ---------- Upload and camera placeholder sections ---------- */

.camera-upload-section,
.camera-capture-section {
    background-color: #1f2937;
    border-radius: 12px;
    padding: 18px;
    margin-top: 14px;
}

.camera-upload-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.camera-upload-form label {
    font-weight: bold;
}

.camera-upload-form input[type="file"] {
    color: #ffffff;
}

.submit-photo-button,
.take-photo-placeholder-button {
    width: fit-content;
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    background-color: #16a34a;
    color: #ffffff;
    font-weight: bold;
    cursor: pointer;
}

.submit-photo-button:hover,
.take-photo-placeholder-button:hover {
    background-color: #15803d;
}

.footer-status {
    margin-top: 16px;
    color: #d1d5db;
    font-size: 0.9rem;
}


/* =========================================================
   Dark mode support
   Assumes JavaScript toggles .dark-mode on body.
   ========================================================= */

body.dark-mode {
    background-color: #0f172a;
    color: #e5e7eb;
}

body.dark-mode .album-page-heading p,
body.dark-mode .album-detail-heading p,
body.dark-mode .album-card-content p {
    color: #cbd5e1;
}

body.dark-mode .album-card,
body.dark-mode .photo-card {
    background-color: #1f2937;
    border-color: #374151;
}

body.dark-mode .album-card-content h2,
body.dark-mode .album-page-heading h1,
body.dark-mode .album-detail-heading h1 {
    color: #ffffff;
}

body.dark-mode .album-cover-image,
body.dark-mode .photo-card {
    background-color: #111827;
}

body.dark-mode .back-to-albums-link {
    color: #60a5fa;
}

body.dark-mode .camera-footer-button {
    background-color: #1f2937;
}

body.dark-mode .camera-footer {
    background-color: #020617;
}

body.dark-mode .camera-upload-section,
body.dark-mode .camera-capture-section {
    background-color: #111827;
}


/* =========================================================
   Responsive layout
   ========================================================= */

@media screen and (max-width: 950px) {

    .album-card-grid,
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media screen and (max-width: 650px) {

    .album-card-grid,
    .photo-grid {
        grid-template-columns: 1fr;
    }

    .album-page-heading h1,
    .album-detail-heading h1 {
        font-size: 2rem;
    }

    .camera-footer-button {
        width: 78px;
        height: 78px;
        border-radius: 18px;
        bottom: 16px;
    }

    .camera-footer-options {
        flex-direction: column;
    }

    .camera-option-button,
    .submit-photo-button,
    .take-photo-placeholder-button {
        width: 100%;
    }

}