/**
 * WinBolo.net Map Collections Styles
 * Map Navigation, Folders, Gallery, Details, Search, Reviews
 */

/* ============================================
   Map Navigation Section
   ============================================ */
.map-nav-section {
    margin-bottom: 1.5rem;
}

.map-nav-info {
    margin-bottom: 1rem;
}

.map-nav-info p {
    margin-bottom: 0.5rem;
}

.map-comment {
    background: var(--bg-gray);
    padding: 0.75rem;
    border-radius: 4px;
    margin-top: 0.25rem;
    line-height: 1.6;
}

.map-comment pre {
    margin: 0;
    white-space: pre-wrap;
    font-family: inherit;
}

.map-nav-intro {
    margin-bottom: 1rem;
    line-height: 1.7;
    background: var(--bg-white);
    border: 1px solid var(--divider-color);
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: var(--shadow);
}

.map-nav-intro p {
    margin-bottom: 1rem;
}

.map-nav-intro a {
    color: var(--primary-blue);
}

/* ============================================
   Map Breadcrumb
   ============================================ */
.map-breadcrumb {
    background: var(--bg-gray);
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.map-breadcrumb a {
    color: var(--primary-blue);
    text-decoration: none;
}

.map-breadcrumb a:hover {
    text-decoration: underline;
}

/* ============================================
   Map Folder Info Box
   ============================================ */
.map-folder-info-box {
    background: var(--bg-white);
    border: 1px solid var(--divider-color);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.folder-info-header {
    background: var(--bg-gray);
    border-bottom: 1px solid var(--divider-color);
    padding: 0.75rem 1rem;
}

.folder-info-header h3 {
    margin: 0;
    font-size: 1.1em;
    color: var(--text-dark);
}

.folder-info-content {
    padding: 1rem;
}

.folder-info-row {
    display: flex;
    margin-bottom: 0.75rem;
}

.folder-info-row:last-child {
    margin-bottom: 0;
}

.folder-info-label {
    font-weight: 600;
    color: var(--text-muted);
    min-width: 100px;
    flex-shrink: 0;
}

.folder-info-value {
    color: var(--text-dark);
}

.folder-info-value a {
    color: var(--primary-blue);
    text-decoration: none;
}

.folder-info-value a:hover {
    text-decoration: underline;
}

.folder-comment {
    flex-direction: column;
}

.folder-info-comment {
    margin-top: 0.5rem;
    background: var(--bg-gray);
    border: 1px solid var(--divider-color);
    border-radius: 4px;
    padding: 0.75rem;
    color: var(--text-dark);
    line-height: 1.5;
}

/* ============================================
   Map Section Titles
   ============================================ */
.map-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.map-section-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* ============================================
   Map Folders Section
   ============================================ */
.map-folders-section {
    margin-bottom: 1.5rem;
}

.map-folders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.folder-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--bg-gray);
    border-radius: 4px;
    text-decoration: none;
    color: var(--text-dark);
    transition: background-color 0.2s, transform 0.2s;
}

.folder-item:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.folder-icon {
    font-size: 1.2rem;
}

.folder-name {
    flex: 1;
    font-weight: 600;
    color: var(--primary-blue);
}

.folder-count {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ============================================
   Map Gallery
   ============================================ */
.map-maps-section {
    margin-bottom: 1.5rem;
}

.map-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
    gap: 1.5rem;
}

.map-item {
    background: var(--bg-gray);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.map-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.map-preview {
    width: 100%;
    height: auto;
    max-width: 255px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.map-download-link {
    display: block;
    text-decoration: none;
}

.map-name {
    display: block;
    padding: 0.5rem;
    text-align: center;
    font-weight: 600;
    color: var(--primary-blue);
    background: var(--bg-white);
}

.map-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: var(--bg-white);
    border-top: 1px solid #eee;
}

.map-info-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}

.map-info-link:hover {
    text-decoration: underline;
}

.map-rating {
    display: flex;
    gap: 2px;
}

.map-rating img {
    width: 10px;
    height: 10px;
}

/* ============================================
   Map Details Section
   ============================================ */
.map-details-section {
    margin-bottom: 2rem;
}

.map-details-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 1.5rem;
    background: var(--bg-gray);
    border-radius: 8px;
    padding: 1.5rem;
}

.map-details-image img {
    width: 100%;
    max-width: 300px;
    border-radius: 4px;
}

.map-details-name {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.map-details-name a {
    color: var(--primary-blue);
    text-decoration: none;
}

.map-details-name a:hover {
    text-decoration: underline;
}

.map-details-list {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem 1rem;
}

.map-details-list dt {
    font-weight: 600;
    color: var(--text-muted);
}

.map-details-list dd {
    margin: 0;
}

/* ============================================
   Map Reviews Section
   ============================================ */
.map-reviews-section {
    margin-top: 2rem;
}

.review-item {
    background: var(--bg-gray);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.review-header {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.75rem;
}

.review-author a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

.review-author a:hover {
    text-decoration: underline;
}

.review-date {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.review-content {
    line-height: 1.6;
}

.no-reviews {
    color: var(--text-muted);
    font-style: italic;
}

/* ============================================
   Map Search Section
   ============================================ */
.search-section {
    background: var(--bg-white);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.map-search-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.map-search-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.map-search-form label {
    font-weight: 600;
    color: var(--text-dark);
}

.map-search-form input[type="text"] {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    max-width: 400px;
}

.map-search-form select {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    max-width: 400px;
    background: var(--bg-white);
}

.search-type-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.search-type-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: normal;
}

.search-type-label input[type="radio"] {
    cursor: pointer;
}

.search-or {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.search-submit {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    max-width: 200px;
    transition: background-color 0.2s;
}

.search-submit:hover {
    background: var(--primary-blue-dark);
}

.search-note {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-style: italic;
}

/* ============================================
   Search Results Section
   ============================================ */
.search-results-section {
    background: var(--bg-white);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.search-no-results {
    text-align: center;
    padding: 2rem;
}

.no-results-message {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.search-again-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

.search-again-link:hover {
    text-decoration: underline;
}

.search-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

/* ============================================
   Map Details Mini
   ============================================ */
.map-details-mini {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    background: var(--bg-white);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.map-details-mini .map-author a {
    color: var(--primary-blue);
    text-decoration: none;
}

.map-details-mini .map-author a:hover {
    text-decoration: underline;
}

/* ============================================
   Map Add Review Section
   ============================================ */
.map-add-review-section {
    margin-top: 2rem;
    background: var(--bg-white);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.map-add-review-section .login-prompt {
    background: var(--bg-gray);
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
}

.map-add-review-section .already-commented,
.map-add-review-section .games-required-message {
    background: var(--bg-gray);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.map-add-review-section .comment-form-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.map-add-review-section .comment-form-table td {
    padding: 0.75rem 0.5rem;
    vertical-align: top;
}

.map-add-review-section .comment-form-table select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
    background: var(--bg-white);
    cursor: pointer;
}

.map-add-review-section .comment-form-table textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
}

.map-add-review-section .comment-form-table textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(51, 102, 204, 0.1);
}

.map-add-review-section .form-hint {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-left: 0.5rem;
}

.map-add-review-section .submit-button {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.map-add-review-section .submit-button:hover {
    background: var(--primary-blue-dark);
}

/* ============================================
   Map Info Card
   ============================================ */
.map-info-card {
    background: var(--bg-white);
    border-radius: 8px;
    padding: 1rem;
    display: grid;
    grid-template-columns: 255px 1fr;
    gap: 1.5rem;
}

.map-preview-container {
    text-align: center;
}

.map-preview-image {
    width: 255px;
    height: 255px;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.map-preview-image:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.map-info-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.map-info-item {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.map-label {
    font-weight: 600;
    color: var(--text-muted);
    min-width: 100px;
}

.map-value {
    color: var(--text-dark);
}

.stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--bg-gray);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-right: 0.5rem;
}

.map-collection-info {
    text-align: center;
}

.no-collection {
    color: var(--text-muted);
    font-style: italic;
}

/* ============================================
   Dark Theme Overrides
   ============================================ */
[data-theme="dark"] .map-breadcrumb a,
[data-theme="dark"] .folder-name,
[data-theme="dark"] .map-name,
[data-theme="dark"] .map-info-link,
[data-theme="dark"] .map-details-name a,
[data-theme="dark"] .review-author a,
[data-theme="dark"] .search-again-link,
[data-theme="dark"] .map-details-mini .map-author a {
    color: #4d9fff;
}

[data-theme="dark"] .map-details-name a:hover,
[data-theme="dark"] .review-author a:hover,
[data-theme="dark"] .search-again-link:hover,
[data-theme="dark"] .map-details-mini .map-author a:hover {
    color: #7cb8ff;
}

[data-theme="dark"] .map-add-review-section .login-prompt {
    border-color: var(--divider-color);
}