/* === Modal Styles === */
/* .prompt-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.prompt-modal.show {
    display: flex;
    opacity: 1;
}

.prompt-modal-content {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #000;
    padding: 30px;
    max-width: 600px;
    width: 100%;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.prompt-modal.show .prompt-modal-content {
    transform: scale(1);
}

.prompt-modal-text {
    color: white;
    font-family: 'Courier Prime', monospace;
    font-size: 16px;
    line-height: 1.5;
}

.prompt-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
} */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: #2c2c2c;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
}

.example-category {
    margin-bottom: 25px;
}

.example-category h3 {
    font-family: 'Playfair Display', serif;
    color: #8B7355;
    margin-bottom: 10px;
    font-size: 18px;
}

.example-item {
    background: #f9f9f9;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 8px;
    border-left: 3px solid #8B7355;
    cursor: pointer;
    transition: background 0.2s ease;
}

.example-item:hover {
    background: #f0f0f0;
}

.example-text {
    font-family: 'Courier Prime', monospace;
    color: #333;
    line-height: 1.4;
}

/* Image Guidelines Modal - Unique Classes */
.image-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.image-modal-overlay.show {
    display: flex;
    opacity: 1;
}

.image-modal-content {
    background: white;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.image-modal-overlay.show .image-modal-content {
    transform: scale(1);
}

.image-modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.image-modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: #2c2c2c;
    margin: 0;
}

.image-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-close-btn:hover {
    color: #333;
}

.image-modal-body {
    padding: 20px;
}
.guideline-section {
    margin-bottom: 25px;
}

.guideline-section h3 {
    font-family: 'Playfair Display', serif;
    color: #8B7355;
    margin-bottom: 15px;
    font-size: 18px;
    border-bottom: 2px solid #d4a574;
    padding-bottom: 5px;
}

.guideline-item {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 10px;
    border-left: 4px solid #8B7355;
}

.guideline-item.warning {
    border-left-color: #e74c3c;
    background: #fdf2f2;
}

.guideline-item.success {
    border-left-color: #27ae60;
    background: #f0f9f4;
}

.guideline-title {
    font-family: 'Courier Prime', monospace;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 8px;
    font-size: 14px;
}

.guideline-text {
    font-family: 'Courier Prime', monospace;
    color: #333;
    line-height: 1.4;
    font-size: 13px;
}

.guideline-specs {
    background: #2c2c2c;
    color: #f7f5f0;
    padding: 15px;
    border-radius: 6px;
    font-family: 'Courier Prime', monospace;
    font-size: 14px;
    margin: 15px 0;
}

.guideline-specs strong {
    color: #d4a574;
}

/* === Shared Modal Styles for Earnings & Rate Limit Modals === */
.earnings-modal-overlay,
.rate-limit-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.earnings-modal-overlay.show,
.rate-limit-modal-overlay.show {
    display: flex;
    opacity: 1;
}

.earnings-modal-content,
.rate-limit-modal-content {
    background: white;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    /* Remove max-height entirely - modal will size to content */
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.earnings-modal-overlay.show .earnings-modal-content,
.rate-limit-modal-overlay.show .rate-limit-modal-content {
    transform: scale(1);
}

.earnings-modal-header,
.rate-limit-modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.earnings-modal-title,
.rate-limit-modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: #2c2c2c;
    margin: 0;
}

.earnings-close-btn,
.rate-limit-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.earnings-close-btn:hover,
.rate-limit-close-btn:hover {
    color: #333;
}

.earnings-modal-body,
.rate-limit-modal-body {
    padding: 20px;
}

.earnings-guideline-specs,
.rate-limit-guideline-specs {
    background: #2c2c2c;
    color: #f7f5f0;
    padding: 15px;
    border-radius: 6px;
    font-family: 'Courier Prime', monospace;
    font-size: 14px;
    margin: 15px 0;
}

.earnings-guideline-specs strong,
.rate-limit-guideline-specs strong {
    color: #d4a574;
}

.earnings-guideline-section,
.rate-limit-guideline-section {
    margin-bottom: 25px;
}

.earnings-guideline-section h3,
.rate-limit-guideline-section h3 {
    font-family: 'Playfair Display', serif;
    color: #8B7355;
    margin-bottom: 15px;
    font-size: 18px;
    border-bottom: 2px solid #d4a574;
    padding-bottom: 5px;
}

.earnings-guideline-item,
.rate-limit-guideline-item {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 10px;
    border-left: 4px solid #8B7355;
}

.earnings-guideline-item.warning,
.rate-limit-guideline-item.warning {
    border-left-color: #e74c3c;
    background: #fdf2f2;
}

.earnings-guideline-item.success,
.rate-limit-guideline-item.success {
    border-left-color: #27ae60;
    background: #f0f9f4;
}

.earnings-guideline-title,
.rate-limit-guideline-title {
    font-family: 'Courier Prime', monospace;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 8px;
    font-size: 14px;
}

.earnings-guideline-text,
.rate-limit-guideline-text {
    font-family: 'Courier Prime', monospace;
    color: #333;
    line-height: 1.4;
    font-size: 13px;
}

.earnings-modal-actions,
.rate-limit-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: flex-end;
}

.earnings-submit-btn,
.rate-limit-submit-btn {
    background: #8B7355;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-family: 'Courier Prime', monospace;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.earnings-submit-btn:hover,
.rate-limit-submit-btn:hover {
    background: #6b5a44;
}

.earnings-submit-btn.secondary,
.rate-limit-submit-btn.secondary {
    background: #666;
}

.earnings-submit-btn.secondary:hover,
.rate-limit-submit-btn.secondary:hover {
    background: #555;
}

.overlay-content {
    background: #fff;
    border: 3px solid #2c2c2c;
    padding: 30px;
    position: relative;
    box-shadow: 
        8px 8px 0 #d4a574,
        8px 8px 0 3px #2c2c2c;
}

.overlay-content::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 2px dashed #d4a574;
    pointer-events: none;
}

.overlay-title {
    margin: 0 0 15px 0;
    color: #2c2c2c;
    font-family: 'Courier Prime', monospace;
    font-weight: 700;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.overlay-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
}

.overlay-text {
    margin: 0 0 25px 0;
    color: #666;
    font-size: 16px;
    font-family: 'Courier Prime', monospace;
    line-height: 1.4;
}

.overlay-btn {
    background: #2c2c2c;
    color: #f7f5f0;
    border: none;
    padding: 15px 25px;
    font-family: 'Courier Prime', monospace;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.overlay-btn::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 2px dashed #d4a574;
    pointer-events: none;
}

.overlay-btn:hover {
    background: #f7f5f0;
    color: #2c2c2c;
    transform: translate(-2px, -2px);
    box-shadow: 
        5px 5px 0 #d4a574,
        5px 5px 0 2px #2c2c2c;
}

.overlay-btn:active {
    transform: translate(-1px, -1px);
    box-shadow: 
        3px 3px 0 #d4a574,
        3px 3px 0 2px #2c2c2c;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .earnings-modal-content,
    .rate-limit-modal-content {
        margin: 10px;
        max-height: 90vh;
    }
    
    .earnings-modal-actions,
    .rate-limit-modal-actions {
        flex-direction: column;
    }
}

/* === Responsive Design === */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }
}