/* --- Global Styles & Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');

:root {
    --bg-color: #121212;
    --surface-color: #1e1e1e;
    --primary-color: #bb86fc;
    --primary-variant-color: #a06bff;
    --success-color: #03dac6;
    --title-bar-color: #2a2533;
    --text-color: #e0e0e0;
    --text-muted-color: #a0a0a0;
    --border-radius: 12px;
    --gap: 15px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    padding: var(--gap);
}

/* --- Main Page Header --- */
.main-header {
    text-align: center;
    margin: 20px 0 40px 0;
}

.main-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary-color), #d0b3ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

.main-header .subtitle {
    font-size: 1rem;
    color: var(--text-muted-color);
    font-weight: 400;
}

/* --- Main Layout Container --- */
.container {
    width: 100%;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

/* --- Prompt Set Wrapper --- */
.prompt-set {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 960px; 
    margin: 0 auto; 
}

/* --- Title Bar --- */
.title-bar {
    background-color: var(--title-bar-color);
    padding: 15px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    width: 100%; 
}

.title-bar h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

/* --- Image Gallery --- */
.gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--gap);
    height: 48vh;
    width: 100%;
}

.gallery-item {
    height: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery img {
    height: 100%;
    width: auto;
    display: block;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    cursor: pointer; /* ADDED: To show images are clickable */
}

.gallery img:hover {
    transform: scale(1.03);
}

/* --- Prompt Section --- */
.prompts {
    background-color: var(--surface-color);
    padding: 25px 30px;
    border-radius: var(--border-radius);
    width: 100%;
}

.prompts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.prompts h3 {
    font-size: 1.2rem;
    font-style: italic;
}

.prompts p {
    font-size: 1rem;
    color: var(--text-muted-color);
    white-space: pre-wrap;
}

/* --- Copy Button --- */
.copy-btn {
    background-color: var(--primary-color);
    color: #121212;
    border: none;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.copy-btn:hover {
    background-color: var(--primary-variant-color);
    transform: scale(1.05);
}

.copy-btn.copied {
    background-color: var(--success-color);
}

/* --- Footer Styling --- */
.footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--surface-color);
    color: var(--text-muted-color);
    font-size: 0.9rem;
}

.footer a,
.subtitle a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.footer a:hover,
.subtitle a:hover {
    text-decoration: underline;
}

/* --- Responsive Design for smaller screens --- */
@media (max-width: 900px) {
    .main-header h1 {
        font-size: 1.8rem;
    }
    
    .title-bar,
    .prompts {
        width: 100%;
    }

    .gallery {
        flex-direction: column;
        height: auto;
        width: 100%;
        margin: 0 auto;
    }

    .gallery img {
        width: 100%;
        height: auto;
    }

    .title-bar h1 {
        font-size: 1.2rem;
    }

    .prompts {
        padding: 20px;
    }

    .prompts-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* --- ADDED: Modal (Image Lightbox) Styles --- */

.modal {
  display: none; 
  position: fixed; 
  z-index: 1000; 
  padding-top: 60px; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: auto; 
  background-color: rgba(0,0,0,0.9); 
}

.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  animation-name: zoom;
  animation-duration: 0.6s;
}

@keyframes zoom {
  from {transform:scale(0)}
  to {transform:scale(1)}
}

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

@media only screen and (max-width: 700px){
  .modal-content {
    width: 95%;
  }
}