/* === Creator Info Styles === */
.gallery-creator-info {
    display: flex;
    align-items: center;
    padding: 12px;
    background: rgba(247, 245, 240, 0.9);
    border-bottom: 2px solid #2c2c2c;
    gap: 10px;
    justify-content: space-between;
}

.creator-profile-link {
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.creator-profile-link:hover {
    transform: scale(1.05);
}

.creator-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #d4a574;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.creator-avatar:hover {
    transform: scale(1.1);
}

/* === Social Share Styles === */
.gallery-social-share {
    flex-shrink: 0;
    margin-left: auto;
}

.share-buttons {
    display: flex;
    gap: 6px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.8);
    color: #2c2c2c;
}

.share-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.share-btn.twitter {
    border-color: #1DA1F2;
}

.share-btn.twitter:hover {
    background: #1DA1F2;
    color: white;
}
.share-btn.x {
    border: 1px solid #333;
}

.share-btn.x:hover {
    background-color: #000000;
    border-color: #000000;
    color: white;
}

.share-btn.facebook {
    border-color: #4267B2;
}

.share-btn.facebook:hover {
    background: #4267B2;
    color: white;
}

.share-btn.pinterest {
    border-color: #E60023;
}

.share-btn.pinterest:hover {
    background: #E60023;
    color: white;
}

.share-btn.copy-link {
    border-color: #d4a574;
}

.share-btn.copy-link:hover {
    background: #d4a574;
    color: white;
}

.share-btn svg {
    width: 14px;
    height: 14px;
}


/* === Modal Styles === */
.prompt-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 10px;
    box-sizing: border-box;
}

.prompt-modal-content {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #333;
    border-radius: 8px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.prompt-modal-header {
    position: sticky;
    top: 0;
    background: rgba(0, 0, 0, 0.9);
    padding: 15px 20px 10px;
    border-bottom: 1px solid #444;
    display: flex;
    justify-content: flex-end;
    z-index: 1001;
}

.prompt-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    line-height: 1;
}

.prompt-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.prompt-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

.prompt-modal-text {
    color: white;
    font-family: 'Courier Prime', monospace;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 15px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* === Design Modal Styles === */
.design-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
}

.design-modal-content {
    background: #1a1a1a;
    border-radius: 12px;
    max-width: 600px;
    max-height: 90vh;
    width: 100%;
    position: relative;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
}

.design-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: #ccc;
    cursor: pointer;
    z-index: 1001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.design-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: scale(1.1);
}

.design-modal-header {
    padding: 25px 25px 15px 25px;
    border-bottom: 1px solid #333;
    text-align: left;
    position: relative;
}

.design-modal-title {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    padding-right: 40px;
}

.design-modal-id {
    display: none;
}

.design-modal-image-container {
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    min-height: 100px;
}

.design-modal-image {
    max-width: 100%;
    max-height: 60vh;
    height: auto;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
    display: block;
    margin: 0 auto;
}

.design-modal-image:hover {
    transform: scale(1.02);
}

.design-modal-error {
    text-align: center;
    padding: 40px 20px;
    color: #888;
    font-style: italic;
    font-size: 16px;
}

.design-modal-description {
    padding: 25px;
}

.design-modal-description h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.design-modal-description p {
    color: #ccc;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    white-space: pre-line;
}

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

    .gallery-overlay .gallery-new-title {
        font-size: 12px;
    }
    
    .gallery-overlay-text {
        font-size: 11px;
        padding: 6px 10px;
        letter-spacing: 1px;
    }


    .creator-avatar {
        width: 28px;
        height: 28px;
    }

    .creator-name {
        font-size: 11px;
    }

    .creator-location {
        font-size: 9px;
    }

    .share-btn {
        width: 24px;
        height: 24px;
    }

    .share-btn svg {
        width: 12px;
        height: 12px;
    }

    .share-buttons {
        gap: 4px;
    }

    .live-status-badge,
    .draft-status-badge {
        font-size: 8px;
        padding: 3px 6px;
        top: 6px;
        right: 6px;
    }
    
    .prompt-modal {
        padding: 5px;
        align-items: flex-start;
        padding-top: 20px;
    }
    
    .prompt-modal-content {
        max-height: 95vh;
        min-height: 200px;
    }
    
    .prompt-modal-header {
        padding: 10px 15px 5px;
    }
    
    .prompt-modal-close {
        font-size: 24px;
        width: 36px;
        height: 36px;
    }
    
    .prompt-modal-body {
        padding: 15px;
    }
    
    .prompt-modal-text {
        font-size: 14px;
    }

    .design-modal {
        padding: 10px;
    }
    
    .design-modal-content {
        max-height: 95vh;
        border-radius: 8px;
    }
    
    .design-modal-header {
        padding: 15px 15px 10px 15px;
        text-align: left;
    }
    
    .design-modal-title {
        font-size: 16px;
        padding-right: 40px;
        line-height: 1.2;
    }
    
    .design-modal-close {
        top: 10px;
        right: 10px;
        font-size: 22px;
        width: 32px;
        height: 32px;
    }
    
    .design-modal-image-container {
        padding: 10px;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    
    .design-modal-image {
        max-height: 35vh;
        max-width: 95%;
        margin: 0 auto;
        display: block;
    }
    
    .design-modal-description {
        padding: 15px;
    }
    
    .design-modal-description h4 {
        font-size: 13px;
        margin-bottom: 8px;
    }
    
    .design-modal-description p {
        font-size: 13px;
        line-height: 1.4;
        padding: 0;
    }
}

@media (max-width: 480px) {
    .gallery-overlay .gallery-new-title {
        font-size: 10px;
        margin-bottom: 8px;
    }
    
    .gallery-overlay-text {
        font-size: 9px;
        padding: 5px 8px;
        letter-spacing: 0.5px;
    }

    .gallery-creator-info {
        padding: 8px;
        gap: 8px;
    }

    .creator-avatar {
        width: 24px;
        height: 24px;
    }

    .creator-name {
        font-size: 10px;
    }

    .creator-location {
        font-size: 8px;
    }

    .share-btn {
        width: 20px;
        height: 20px;
    }

    .share-btn svg {
        width: 10px;
        height: 10px;
    }

    .share-buttons {
        gap: 3px;
    }
    
    .prompt-modal {
        padding: 2px;
        padding-top: 10px;
    }
    
    .prompt-modal-content {
        max-height: 98vh;
        border-radius: 4px;
    }
    
    .prompt-modal-header {
        padding: 8px 12px 4px;
    }
    
    .prompt-modal-close {
        font-size: 20px;
        width: 32px;
        height: 32px;
    }
    
    .prompt-modal-body {
        padding: 15px;
    }
    
    .prompt-modal-text {
        font-size: 13px;
        line-height: 1.4;
    }

    .design-modal {
        padding: 5px;
    }
    
    .design-modal-content {
        max-height: 98vh;
        border-radius: 6px;
    }
    
    .design-modal-header {
        padding: 12px 12px 8px 12px;
    }
    
    .design-modal-title {
        font-size: 14px;
        padding-right: 35px;
    }
    
    .design-modal-close {
        top: 8px;
        right: 8px;
        font-size: 20px;
        width: 28px;
        height: 28px;
    }
    
    .design-modal-image-container {
        padding: 8px;
    }
    
    .design-modal-image {
        max-height: 30vh;
        max-width: 98%;
    }
    
    .design-modal-description {
        padding: 12px;
    }
    
    .design-modal-description h4 {
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .design-modal-description p {
        font-size: 12px;
        line-height: 1.3;
    }
}