/* Custom Font Imports */
@font-face {
    font-family: 'Google Sans';
    src: url('fonts/GoogleSans-Regular.ttf') format('truetype');
    font-weight: 400;
}

@font-face {
    font-family: 'Google Sans';
    src: url('fonts/GoogleSans-Medium.ttf') format('truetype');
    font-weight: 500;
}

@font-face {
    font-family: 'Google Sans';
    src: url('fonts/GoogleSans-Bold.ttf') format('truetype');
    font-weight: 700;
}

/* Reset & Base Google Dark Palette */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Google Sans', -apple-system, Roboto, sans-serif;
    background-color: #202124;
    color: #e8eaed;
    min-height: 100vh;
    display: flex;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 1100px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
}

.back-link {
    text-decoration: none;
    color: #8ab4f8;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background-color: rgba(138, 180, 248, 0.1);
    transition: background-color 0.2s ease;
}

.back-link:hover {
    background-color: rgba(138, 180, 248, 0.2);
}

/* Header */
.hero {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

.badge {
    background-color: rgba(129, 201, 149, 0.15);
    color: #81c995;
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
}

.hero h1 {
    font-size: 2.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.subtitle {
    color: #9aa0a6;
    font-size: 1.1rem;
}

/* Main Photo Gallery Grid */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}

.photo-card {
    background-color: #303134;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #3c4043;
    aspect-ratio: 4 / 3;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.photo-card:hover {
    transform: translateY(-4px);
    border-color: #5f6368;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.photo-card:hover img {
    transform: scale(1.03);
}

/* Search Section */
.search-section {
    width: 100%;
}

.search-card {
    background-color: #303134;
    border: 1px solid #3c4043;
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.search-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

.search-card p {
    color: #9aa0a6;
    font-size: 0.95rem;
}

.search-box {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.input-wrapper {
    flex: 1;
    min-width: 260px;
    display: flex;
    align-items: center;
    background-color: #202124;
    border: 1px solid #3c4043;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    gap: 0.5rem;
}

.input-wrapper:focus-within {
    border-color: #8ab4f8;
}

.search-icon {
    font-size: 1rem;
}

.input-wrapper input {
    background: transparent;
    border: none;
    outline: none;
    color: #e8eaed;
    font-family: inherit;
    font-size: 1rem;
    width: 100%;
}

.suffix-tag {
    color: #5f6368;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Buttons */
.btn-search, .btn-primary {
    background-color: #8ab4f8;
    color: #202124;
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-search:hover, .btn-primary:hover:not(:disabled) {
    background-color: #aecbfa;
}

.btn-primary:disabled {
    background-color: #3c4043;
    color: #80868b;
    cursor: not-allowed;
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid #3c4043;
    color: #e8eaed;
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-secondary:hover {
    background-color: #3c4043;
}

/* Search Results Area */
.search-results {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    border-top: 1px solid #3c4043;
    padding-top: 1.5rem;
}

.search-results.hidden {
    display: none;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.actions-bar {
    display: flex;
    gap: 0.75rem;
}

.photoshoot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.status-msg {
    color: #9aa0a6;
    grid-column: 1 / -1;
}

.selectable-card {
    position: relative;
    background-color: #202124;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.selectable-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.select-checkbox {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 22px;
    height: 22px;
    accent-color: #8ab4f8;
    cursor: pointer;
    z-index: 2;
}

.preview-badge {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: rgba(32, 33, 36, 0.85);
    backdrop-filter: blur(4px);
    color: #e8eaed;
    border: 1px solid #5f6368;
    border-radius: 20px;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
    z-index: 2;
    white-space: nowrap;
}

.selectable-card:hover .preview-badge {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.preview-badge:hover {
    background-color: #8ab4f8;
    color: #202124;
    border-color: #8ab4f8;
}

.selectable-card.selected {
    border-color: #8ab4f8;
}

/* Fullscreen Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 12px;
    object-fit: contain;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #e8eaed;
    font-size: 2.5rem;
    font-weight: 700;
    cursor: pointer