/* ========================= */
/* HEADER + SPEECH BUBBLE    */
/* ========================= */

.media-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.poses-img {
    width: 25%;
    height: auto;
}

.speech-bubble {
    position: relative;
    background: #fff;
    padding: 18px 22px;
    border-radius: 20px;
    border: 2px solid #333;
    max-width: 420px;
    animation:
        bubble-pop 0.6s ease-out,
        bubble-float 4s ease-in-out infinite;
}

/* Speech bubble tail */
.speech-bubble::after {
    content: "";
    position: absolute;
    left: -18px;
    top: 40%;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-right: 18px solid #fff;
}

.speech-bubble::before {
    content: "";
    position: absolute;
    left: -20px;
    top: 40%;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    border-right: 20px solid #333;
}

/* ========================= */
/* MEDIA LINKS               */
/* ========================= */

.media-link {
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s ease, text-shadow 0.2s ease;
}

.media-link:hover {
    transform: scale(1.1);
    text-shadow: 0 0 8px currentColor;
}

.media-link.active {
    text-shadow: 0 0 12px currentColor;
}

/* Media colors */
.music  { color: #ff4da6; }
.movies { color: #ff3333; }
.tv     { color: #4da6ff; }
.games  { color: #33cc66; }

/* ========================= */
/* ANIMATIONS                */
/* ========================= */

@keyframes bubble-pop {
    0% { transform: scale(0.8); opacity: 0; }
    70% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes bubble-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

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

/* ========================= */
/* ART GALLERY               */
/* ========================= */

.artgallery {
    display: flex;
    justify-content: center;
    align-items: center;           /* vertical center alignment */
    gap: 15px;

    width: 100%;
    max-width: 100%;
    overflow-x: hidden;            /* absolute no sideways scroll */
    margin: 30px auto;
}

/* Each artwork column */
.artgallery-item {
    flex: 1 1 0;
    max-width: 60%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
}

/* The paintings */
.artgallery-item img {
    max-width: 100%;
    max-height: 90vh;              /* keeps them large but sane */
    width: auto;
    height: auto;

    object-fit: contain;
    display: block;

    border-radius: 4px;

    /* faint purple aura */
    box-shadow:
        0 0 0 1.5px #c53fff,
        0 0 18px rgba(197, 63, 255, 0.55);
}

/* Labels */
.artgallery-item figcaption {
    margin-top: 12px;
}

.artgallery-item p {
    margin: 4px 0 0 0;
    font-size: 0.9em;
    opacity: 0.85;
}

/* ========================= */
/* MOBILE                    */
/* ========================= */

@media (max-width: 800px) {
    .artgallery {
        flex-direction: column;
    }

    .artgallery-item {
        max-width: 60%;
    }

    .artgallery-item img {
        max-height: none;
        width: 600%;
    }
}

/* ========================= */
/* TESTING CONCERT DIARY                 */
/* ========================= */

/* Concert Diary Styles */
.concert-diary {
  background-color: #9b4b94; /* Purple background for notebook */
  padding: 20px;
  width: 350px;
  border-radius: 12px;
  font-family: Arial, sans-serif;
  color: white;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  margin: auto;
}

.diary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  margin-bottom: 20px;
}

.page-counter {
  font-size: 18px;
}

.arrows {
  display: flex;
  align-items: center;
}

.arrow {
  font-size: 24px;
  cursor: pointer;
  padding: 5px;
  transition: color 0.3s ease;
}

.arrow:hover {
  color: #fff5a6; /* Slight yellow on hover */
}

.arrow:disabled {
  color: #888; /* Grey out arrows when disabled */
  cursor: not-allowed;
}

/* Diary Page Content */
.diary-page {
  background-color: #d19fe8;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.diary-photo {
  width: 150px;
  height: 150px;
  margin-bottom: 20px;
}

.diary-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.entry-info {
  text-align: center;
}

.entry-info h2 {
  margin: 10px 0;
  font-size: 22px;
}

.entry-info p {
  margin: 5px 0;
}

.entry-info strong {
  font-weight: bold;
}

.arrow.is-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}
