/* styles.css */
/* BLUR SETTINGS - Modify these values to change blur intensity */
:root {
    --regular-blur: 3px;    /* Regular content blur for non-subscribers */
    --nsfw-blur: 15px;       /* NSFW content blur (always applied) */
    --free-blur: 1px;       /* Free content blur (clickable to remove) */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: #00a8ff;
    text-decoration: none;
}

.parody-text {
    font-size: 0.8rem;
    color: #ff6b6b;
    font-weight: normal;
    margin-left: 0.5rem;
}

.subscription-status {
    display: flex;
    align-items: center;
}

.status {
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
}

.subscribed {
    background: #00d2d3;
    color: white;
}

.not-subscribed {
    background: #ff6b6b;
    color: white;
}

/* Main Content */
.main-content {
    padding: 2rem 0;
}

.subscription-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
}

.subscription-box h2 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.subscription-box p {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.subscribe-btn {
    background: linear-gradient(45deg, #00a8ff, #0078d4);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 168, 255, 0.3);
}

.subscribe-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 168, 255, 0.4);
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.content-item {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    transition: transform 0.3s ease;
}

.content-item:hover {
    transform: translateY(-5px);
}

.image-container {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.content-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.content-image.blurred {
    filter: blur(var(--regular-blur));
    transform: scale(1.1);
}

.content-image.free-blurred {
    filter: blur(var(--free-blur));
    transform: scale(1.05);
    cursor: pointer;
    transition: all 0.3s ease;
}

.content-image.free-blurred:hover {
    filter: blur(calc(var(--free-blur) - 5px));
    transform: scale(1.1);
}

.content-image.free-unblurred {
    filter: blur(0px);
    transform: scale(1);
    animation: unblurFree 0.8s ease-out forwards;
}

.content-image.nsfw-blurred {
    filter: blur(var(--nsfw-blur)) brightness(0.85);  /* More visible */
    transform: scale(1.1);
}

.paywall-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.content-item:hover .paywall-overlay {
    opacity: 1;
}

.paywall-content {
    text-align: center;
    color: white;
    padding: 1rem;
}

.paywall-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.paywall-content p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.unlock-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.unlock-btn:hover {
    transform: scale(1.05);
}

.content-info {
    padding: 1.5rem;
}

.content-info h3 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.content-info p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.stats {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #888;
}

.no-images {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    color: #666;
}

.no-images p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .subscription-box {
        padding: 1.5rem;
    }
    
    .subscribe-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* NSFW Content Styles */
.nsfw-content {
    border: 2px solid #ff6b6b;
    position: relative;
}

.nsfw-content::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24, #ff6b6b);
    border-radius: 17px;
    z-index: -1;
    animation: nsfwGlow 2s ease-in-out infinite alternate;
}

@keyframes nsfwGlow {
    from { box-shadow: 0 0 10px rgba(255, 107, 107, 0.5); }
    to { box-shadow: 0 0 20px rgba(255, 107, 107, 0.8); }
}

.nsfw-warning {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 0, 0, 0.9);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 50;
}

.nsfw-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 0, 0, 0.3);  /* Very light red tint */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: background 0.3s ease;
}

/* Darken on hover to show controls clearly */
.nsfw-content:hover .nsfw-overlay {
    background: rgba(255, 0, 0, 0.8);
}

.nsfw-overlay .paywall-content {
    text-align: center;
    color: white;
    padding: 1rem;
}

.age-warning {
    color: #ffff00 !important;
    font-weight: bold;
    font-size: 0.9rem;
    margin: 0.5rem 0 !important;
}

.nsfw-unlock {
    background: linear-gradient(45deg, #ff1744, #d50000) !important;
    animation: pulseRed 2s ease-in-out infinite;
}

@keyframes pulseRed {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.nsfw-unlock:hover {
    background: linear-gradient(45deg, #d50000, #b71c1c) !important;
    transform: scale(1.1) !important;
}

/* Free Content Styles */
.free-content {
    border: 2px solid #00d2d3;
    position: relative;
}

.free-content::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00d2d3, #00a8ff, #00d2d3);
    border-radius: 17px;
    z-index: -1;
    animation: freeGlow 3s ease-in-out infinite alternate;
}

@keyframes freeGlow {
    from { box-shadow: 0 0 10px rgba(0, 210, 211, 0.5); }
    to { box-shadow: 0 0 25px rgba(0, 210, 211, 0.8); }
}

.free-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(45deg, #00d2d3, #00a8ff);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 50;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1) rotate(5deg); }
}

.content-image.free-blurred {
    filter: blur(var(--free-blur));
    transform: scale(1.05);
    cursor: pointer;
    transition: all 0.3s ease;
}

.content-image.free-blurred:hover {
    filter: blur(calc(var(--free-blur) - 5px));
    transform: scale(1.1);
}

.content-image.free-unblurred {
    filter: blur(0px);
    transform: scale(1);
    animation: unblurFree 0.8s ease-out forwards;
}

@keyframes unblurFree {
    from {
        filter: blur(var(--free-blur));
        transform: scale(1.05);
    }
    to {
        filter: blur(0);
        transform: scale(1);
    }
}

.free-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 210, 211, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.free-content:hover .free-overlay {
    opacity: 1;
}

.free-hint {
    color: #ffff00 !important;
    font-weight: bold;
    font-size: 0.9rem;
    margin: 0.5rem 0 !important;
}

.free-unlock {
    background: linear-gradient(45deg, #00d2d3, #00a8ff) !important;
    animation: pulseFree 2s ease-in-out infinite;
}

@keyframes pulseFree {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.free-unlock:hover {
    background: linear-gradient(45deg, #00a8ff, #0078d4) !important;
    transform: scale(1.1) !important;
}

/* Comments Section */
.comments-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.comments-section h4 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.comments {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.comment {
    background: #f8f9fa;
    padding: 0.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #555;
    border-left: 3px solid #00d2d3;
}

.comment .username {
    font-weight: bold;
    color: #00a8ff;
    margin-right: 0.5rem;
}

.comment .text {
    color: #333;
}

/* Modal Styles - Updated for better image display */
#image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.modal-backdrop {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    width: 95vw;
    height: 95vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease-out;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(45deg, #00d2d3, #00a8ff);
    color: white;
    flex-shrink: 0;
    z-index: 1001;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.modal-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.zoom-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.zoom-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    min-width: 32px;
    height: 32px;
}

.zoom-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.zoom-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.zoom-level {
    color: white;
    font-size: 0.9rem;
    min-width: 50px;
    text-align: center;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    background: #000;
}

.image-container-modal {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    cursor: grab;
}

.image-container-modal.dragging {
    cursor: grabbing;
}

#modal-image {
    max-width: none;
    max-height: none;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    user-select: none;
    pointer-events: none;
}

.modal-footer {
    padding: 1rem 1.5rem;
    text-align: center;
    background: rgba(248, 249, 250, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
    backdrop-filter: blur(10px);
}

.modal-footer p {
    margin: 0 0 1rem 0;
    color: #666;
}

.modal-subscribe-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-subscribe-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.modal-instructions {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1002;
}

.modal-body:hover .modal-instructions {
    opacity: 1;
}

/* Responsive modal */
@media (max-width: 768px) {
    .modal-content {
        width: 98vw;
        height: 98vh;
    }
    
    .modal-header, .modal-footer {
        padding: 0.8rem 1rem;
    }
    
    .modal-header h3 {
        font-size: 1rem;
    }
    
    .zoom-controls {
        gap: 0.3rem;
    }
    
    .zoom-btn {
        font-size: 1rem;
        min-width: 28px;
        height: 28px;
    }
    
    .zoom-level {
        font-size: 0.8rem;
        min-width: 40px;
    }
    
    .modal-instructions {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
}

/* Add to styles.css */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.subscription-status {
    margin-right: 1rem;
}

.redeem-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.redeem-form {
    display: flex;
    gap: 0.5rem;
}

.redeem-form input {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

.redeem-form button {
    padding: 0.5rem 1rem;
    background: #00d2d3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.redeem-success, .redeem-error {
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.redeem-success {
    background: #d4edda;
    color: #155724;
}

.redeem-error {
    background: #f8d7da;
    color: #721c24;
}

/* Responsive design for header */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .header-right {
        flex-direction: column;
        width: 100%;
    }
    
    .subscription-status {
        margin-right: 0;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .redeem-section {
        flex-direction: column;
        width: 100%;
    }
    
    .redeem-form {
        width: 100%;
        justify-content: center;
    }
}