body {
    background: #121212;
    min-height: 100vh;
    color: #e0e0e0;
}

.navbar {
    background: #1a1a1a;
    border-bottom: 1px solid #2d2d2d;
}

.card {
    background: #1e1e1e;
    border: 1px solid #2d2d2d;
    border-radius: 8px;
}

.btn-primary {
    background: #ffffff;
    border-color: #ffffff;
    color: #121212;
}

.btn-primary:hover {
    background: #e0e0e0;
    border-color: #e0e0e0;
    color: #121212;
}

.btn-primary:disabled {
    background: #4a4a4a;
    border-color: #4a4a4a;
    color: #888;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 12px;
    background: #2d2d2d;
    color: #e0e0e0;
}

.result-card {
    display: none;
}

.result-card.show {
    display: block;
}

.loading-spinner {
    display: none;
}

.loading-spinner.show {
    display: inline-block;
}

.profile-pic-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #3d3d3d;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-pic-preview:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.stat-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    background: #2d2d2d;
    margin: 4px;
    font-size: 13px;
    color: #e0e0e0;
}

#profileBio {
    white-space: pre-wrap;
    word-break: break-word;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.post-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 4px;
    background: #2d2d2d;
    cursor: pointer;
}

.post-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.post-item:hover img {
    transform: scale(1.05);
}

.post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.post-item:hover .post-overlay {
    opacity: 1;
}

.post-stats {
    display: flex;
    gap: 15px;
    color: #fff;
    font-size: 14px;
    margin-bottom: 10px;
}

.post-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-download-btn {
    background: #fff;
    color: #121212;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background 0.2s;
}

.post-download-btn:hover {
    background: #e0e0e0;
}

.post-type-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    color: #fff;
    font-size: 16px;
    text-shadow: 0 0 5px rgba(0,0,0,0.8);
}

.posts-section {
    margin-top: 20px;
}

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

.load-more-btn {
    background: #2d2d2d;
    border: 1px solid #3d3d3d;
    color: #e0e0e0;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    margin-top: 15px;
    transition: background 0.2s;
}

.load-more-btn:hover {
    background: #3d3d3d;
}

.load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.load-more-btn.hidden {
    display: none;
}

.disclaimer-text {
    font-size: 11px;
}

.nav-tabs {
    border-bottom: 1px solid #2d2d2d;
}

.nav-tabs .nav-link {
    color: #888;
    border: none;
}

.nav-tabs .nav-link:hover {
    color: #e0e0e0;
    border: none;
}

.nav-tabs .nav-link.active {
    color: #fff;
    font-weight: 500;
    background: transparent;
    border: none;
    border-bottom: 2px solid #fff;
}

.form-control, .input-group-text {
    background: #2d2d2d;
    border-color: #3d3d3d;
    color: #e0e0e0;
}

.form-control:focus {
    background: #2d2d2d;
    border-color: #555;
    color: #e0e0e0;
    box-shadow: none;
}

.form-control::placeholder {
    color: #666;
}

.text-muted {
    color: #888 !important;
}

.alert-secondary {
    background: #2d2d2d;
    border-color: #3d3d3d;
    color: #e0e0e0;
}

.alert-warning {
    background: #3d3000;
    border-color: #554400;
    color: #ffcc00;
}

.alert-success {
    background: #003d00;
    border-color: #005500;
    color: #00ff00;
}

.alert-danger {
    background: #3d0000;
    border-color: #550000;
    color: #ff6666;
}

.alert-info {
    background: #002d3d;
    border-color: #004455;
    color: #66ccff;
}

code {
    background: #2d2d2d;
    color: #e0e0e0;
    padding: 2px 6px;
    border-radius: 4px;
}

.form-check-input {
    background-color: #2d2d2d;
    border-color: #3d3d3d;
}

.form-check-input:checked {
    background-color: #fff;
    border-color: #fff;
}

.badge-hidden {
    display: none;
}

.badge-visible {
    display: inline-block;
}

/* Fullscreen Image Modal */
.fullscreen-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.fullscreen-modal.show {
    display: flex;
}

.fullscreen-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    cursor: grab;
}

.fullscreen-image-container.dragging {
    cursor: grabbing;
}

.fullscreen-modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.1s ease-out;
    transform-origin: center center;
    -webkit-user-select: none;
    user-select: none;
    pointer-events: auto;
}

.fullscreen-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    z-index: 10000;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.fullscreen-close:hover {
    opacity: 1;
}

.zoom-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 15px;
    border-radius: 30px;
}

.zoom-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.zoom-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.zoom-level {
    color: #fff;
    font-size: 14px;
    min-width: 50px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoom-hint {
    position: absolute;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    z-index: 10000;
}
