/*style.css*/


  * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --gold-primary: #bc952f;
            --gold-secondary: #dfc47a;
            --gold-dark: #8a6e24;
            --gold-light: #e8d49a;
            --dark-bg: #1e1e1e;
            --card-bg: #2a2a2a;
            --accent-bg: #363636;
            --dark-grey: #404040;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, var(--dark-bg), #2a2a2a);
            color: #ffffff;
            line-height: 1.6;
            overflow-x: hidden;
        }

        body.modal-open {
            overflow: hidden;
        }

        .header {
            background: linear-gradient(135deg, var(--gold-primary), var(--dark-grey));
            padding: 20px 0;
            box-shadow: 0 4px 20px rgba(0,0,0,0.3);
            position: relative;
        }

        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 20px;
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 20px;
            position: relative;
        }

        .logo {
            height: 60px;
            width: auto;
            filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
        }

        .auth-section {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .user-info5 {
            display: flex;
            align-items: center;
            gap: 12px;
            background: rgba(0,0,0,0.2);
            padding: 8px 15px;
            border-radius: 8px;
        }

        .profile-pic5 {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            border: 2px solid #1e1e1e;
        }

        .username5 {
            background: linear-gradient(45deg, var(--gold-primary), var(--gold-secondary), var(--gold-primary));
            background-size: 300% 300%;
            background-clip: text;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            font-weight: 700;
            font-size: 1.1rem;
            animation: shine 3s ease-in-out infinite;
        }

        @keyframes shine {
            0%, 100% {
                background-position: 0% 50%;
            }
            50% {
                background-position: 100% 50%;
            }
        }

        .daily-limits5 {
            background: rgba(0,0,0,0.2);
            padding: 8px 15px;
            border-radius: 6px;
            text-align: center;
        }

        .daily-limits5 p {
            color: var(--gold-secondary);
            font-weight: 600;
            margin: 0;
        }

        .limit-value5 {
            color: var(--gold-primary);
            font-weight: 800;
        }

        .login-btn5 {
            background: var(--dark-grey);
            color: var(--gold-secondary);
            padding: 12px 25px;
            border: none;
            border-radius: 8px;
            font-size: 1.1rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-block;
        }

        .login-btn5:hover {
            background: var(--gold-primary);
            color: #ffffff;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.3);
        }

        .footer-text5 {
            color: var(--gold-secondary);
            font-size: 0.9rem;
            font-weight: 600;
            margin: 5px 0 0 0;
            text-align: center;
        }

        .search-section {
            background: var(--card-bg);
            padding: 25px 0;
            border-bottom: 1px solid #444;
        }

        .search-controls {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
            align-items: center;
        }

        .search-input {
            flex: 1;
            min-width: 300px;
            padding: 15px 25px;
            background: rgba(51, 51, 51, 0.8);
            border: 2px solid transparent;
            border-radius: 6px;
            color: white;
            font-size: 16px;
            transition: all 0.3s ease;
        }

        .search-input:focus {
            outline: none;
            border-color: var(--gold-primary);
            box-shadow: 0 0 15px rgba(188, 149, 47, 0.3);
            transform: translateY(-2px);
        }

        .filter-select {
            padding: 15px 20px;
            background: var(--card-bg);
            border: 2px solid transparent;
            border-radius: 6px;
            color: var(--gold-primary);
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .filter-select option {
            background: var(--card-bg);
            color: var(--gold-primary);
            padding: 8px;
        }

        .filter-select:focus {
            outline: none;
            border-color: var(--gold-secondary);
            box-shadow: 0 0 10px rgba(223, 196, 122, 0.3);
        }

        .posts-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 30px;
            padding: 40px 0;
        }

        .post-card {
            background: var(--card-bg);
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 8px 25px rgba(0,0,0,0.3);
            transition: all 0.4s ease;
            cursor: pointer;
            border: 2px solid transparent;
            position: relative;
        }

        .post-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 15px 35px rgba(0,0,0,0.4);
            border-color: var(--gold-primary);
        }

        .card-image {
            width: 100%;
            height: 220px;
            object-fit: cover;
            transition: transform 0.4s ease;
        }

        .post-card:hover .card-image {
            transform: scale(1.05);
        }

        .card-content {
            padding: 25px;
        }

        .card-title {
            font-size: 1.3rem;
            font-weight: 700;
            margin-bottom: 15px;
            color: var(--gold-primary);
            line-height: 1.3;
        }

        .card-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            font-size: 0.9rem;
            color: #ccc;
        }

        .card-stats {
            display: flex;
            gap: 20px;
            font-size: 0.85rem;
            color: #999;
            margin-bottom: 15px;
        }

        .stat-item {
            display: flex;
            align-items: center;
            gap: 6px;
            transition: color 0.3s ease;
        }

        .post-card:hover .stat-item {
            color: var(--gold-secondary);
        }

        .category-tag {
            background: linear-gradient(45deg, var(--gold-primary), var(--dark-grey));
            color: #ffffff;
            padding: 6px 12px;
            border-radius: 6px;
            font-size: 0.8rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .category-tag:hover {
            transform: scale(1.05);
            box-shadow: 0 4px 15px rgba(188, 149, 47, 0.4);
        }

        .tags {
            margin-top: 15px;
        }

        .tag {
            display: inline-block;
            background: var(--accent-bg);
            color: var(--gold-secondary);
            padding: 4px 10px;
            border-radius: 4px;
            font-size: 0.75rem;
            margin-right: 6px;
            margin-bottom: 6px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 500;
        }

        .tag:hover {
            background: var(--gold-primary);
            color: #ffffff;
            transform: translateY(-2px);
        }

        /* Modal Styles */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.9);
            z-index: 2000;
            overflow-y: auto;
            backdrop-filter: blur(5px);
        }

        .modal-content {
            background: var(--card-bg);
            margin: 20px auto;
            max-width: 1000px;
            border-radius: 8px;
            position: relative;
            box-shadow: 0 20px 60px rgba(0,0,0,0.5);
            animation: modalSlideIn 0.4s ease;
        }

        @keyframes modalSlideIn {
            from {
                opacity: 0;
                transform: translateY(50px) scale(0.9);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        .modal-close {
            position: absolute;
            top: 20px;
            right: 25px;
            font-size: 32px;
            color: #ccc;
            cursor: pointer;
            z-index: 10;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: rgba(0,0,0,0.5);
            transition: all 0.3s ease;
        }

        .modal-close:hover {
            color: var(--gold-primary);
            background: rgba(188, 149, 47, 0.2);
            transform: rotate(90deg);
        }

        .modal-images {
            position: relative;
            height: 400px;
            border-radius: 8px 8px 0 0;
            overflow: hidden;
            cursor: grab;
        }

        .modal-images:active {
            cursor: grabbing;
        }

        .modal-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            position: absolute;
            top: 0;
            left: 0;
            transition: all 0.5s ease;
        }

        .modal-image.secondary {
            opacity: 0;
            transform: scale(1.1);
        }

        .modal-images:hover .modal-image.secondary {
            opacity: 1;
            transform: scale(1);
        }

        .modal-images:hover .modal-image.primary {
            opacity: 0;
            transform: scale(0.9);
        }

        .modal-body {
            padding: 40px;
        }

        .modal-title {
            font-size: 2.5rem;
            font-weight: 800;
            margin-bottom: 20px;
            color: var(--gold-primary);
            line-height: 1.2;
        }

        .modal-description {
            background: rgba(51, 51, 51, 0.5);
            padding: 25px;
            border-radius: 6px;
            margin-bottom: 30px;
            line-height: 1.8;
            font-size: 1.1rem;
            border-left: 4px solid var(--gold-primary);
        }

        .modal-meta {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
            padding: 25px;
            background: rgba(51, 51, 51, 0.3);
            border-radius: 6px;
        }

        .meta-item {
            text-align: center;
            padding: 15px;
            background: var(--card-bg);
            border-radius: 4px;
            transition: transform 0.3s ease;
        }

        .meta-item:hover {
            transform: translateY(-3px);
        }

        .meta-label {
            color: #999;
            font-size: 0.9rem;
            margin-bottom: 8px;
            font-weight: 500;
        }

        .meta-value {
            color: var(--gold-primary);
            font-weight: 700;
            font-size: 1.2rem;
        }

        .modal-tags {
            margin-bottom: 30px;
        }

        .modal-tags h4 {
            color: var(--gold-primary);
            margin-bottom: 15px;
            font-size: 1.2rem;
        }

        .download-section {
            text-align: center;
            margin: 30px 0;
        }

        .download-btn {
            background: linear-gradient(45deg, var(--gold-primary), var(--dark-grey));
            color: #ffffff;
            padding: 18px 50px;
            border: none;
            border-radius: 6px;
            font-size: 1.2rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-block;
            position: relative;
            overflow: hidden;
        }

        .download-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
            transition: left 0.5s;
        }

        .download-btn:hover::before {
            left: 100%;
        }

        .download-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 25px rgba(188, 149, 47, 0.4);
        }

        .related-section {
            margin-top: 40px;
            padding-top: 30px;
            border-top: 2px solid #444;
        }

        .related-section h3 {
            color: var(--gold-primary);
            margin-bottom: 20px;
            font-size: 1.5rem;
        }

        .related-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 20px;
        }

        .related-card {
            background: var(--card-bg);
            border-radius: 6px;
            overflow: hidden;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .related-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.3);
        }

        .related-image {
            width: 100%;
            height: 120px;
            object-fit: cover;
        }

        .related-content {
            padding: 15px;
        }

        .related-title {
            font-size: 1rem;
            font-weight: 600;
            color: var(--gold-secondary);
            margin-bottom: 10px;
        }

        .related-stats {
            display: flex;
            justify-content: space-between;
            font-size: 0.8rem;
            color: #999;
        }

        .load-more {
            text-align: center;
            padding: 40px 0;
        }

        .load-more-btn {
            background: linear-gradient(45deg, var(--gold-primary), var(--dark-grey));
            color: #ffffff;
            padding: 15px 40px;
            border: none;
            border-radius: 6px;
            font-size: 1.1rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .load-more-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(188, 149, 47, 0.4);
        }

        .load-more-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        /* Limit Modal */
        .limit-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.9);
            z-index: 3000;
            backdrop-filter: blur(5px);
        }

        .limit-modal-content {
            background: var(--card-bg);
            margin: 10% auto;
            max-width: 500px;
            border-radius: 8px;
            padding: 40px;
            text-align: center;
            position: relative;
            animation: modalSlideIn 0.4s ease;
        }

        .limit-modal h3 {
            color: var(--gold-primary);
            font-size: 2rem;
            margin-bottom: 20px;
        }

        .limit-modal p {
            color: #ccc;
            font-size: 1.1rem;
            margin-bottom: 30px;
            line-height: 1.6;
        }

        .limit-modal-buttons {
            display: flex;
            gap: 15px;
            justify-content: center;
            flex-wrap: wrap;
        }

        .btn-primary {
            background: linear-gradient(45deg, var(--gold-primary), var(--dark-grey));
            color: #ffffff;
            padding: 12px 30px;
            border: none;
            border-radius: 6px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .btn-secondary {
            background: transparent;
            color: var(--gold-secondary);
            padding: 12px 30px;
            border: 2px solid var(--gold-secondary);
            border-radius: 6px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .btn-primary:hover,         .btn-secondary:hover {
            transform: translateY(-2px);
            background: var(--gold-secondary);
            color: #1e1e1e;
        }

        #loginInstead {
            background: #5865f2;
            color: white;
            border-color: #5865f2;
        }

        #loginInstead:hover {
            background: #4752c4;
            border-color: #4752c4;
            color: white;
        }

        /* Loading Animation */
        .loading {
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 50px;
        }

        .spinner {
            width: 50px;
            height: 50px;
            border: 4px solid #333;
            border-top: 4px solid var(--gold-primary);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .skeleton {
            background: linear-gradient(90deg, #333 25%, #444 50%, #333 75%);
            background-size: 200% 100%;
            animation: loading 1.5s infinite;
            border-radius: 4px;
        }

        @keyframes loading {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }

        .skeleton-card {
            background: var(--card-bg);
            border-radius: 8px;
            overflow: hidden;
            padding: 20px;
        }

        .skeleton-image {
            height: 220px;
            border-radius: 4px;
            margin-bottom: 15px;
        }

        .skeleton-text {
            height: 20px;
            border-radius: 4px;
            margin-bottom: 10px;
        }

        .skeleton-text.short {
            width: 60%;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .header-content {
                flex-direction: column;
                text-align: center;
            }

            .auth-section {
                flex-direction: column;
                width: 100%;
            }

            .search-controls {
                flex-direction: column;
            }
            
            .search-input {
                min-width: 100%;
            }
            
            .posts-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 15px;
                padding: 20px 0;
            }

            .post-card {
                min-width: 0;
            }

            .card-image {
                height: 140px;
            }

            .card-content {
                padding: 15px;
            }

            .card-title {
                font-size: 1rem;
            }

            .card-stats {
                flex-wrap: wrap;
                gap: 10px;
            }
            
            .modal-content {
                margin: 10px;
                max-width: calc(100% - 20px);
            }

            .modal-body {
                padding: 20px;
            }

            .modal-title {
                font-size: 1.8rem;
            }

            .modal-meta {
                grid-template-columns: repeat(2, 1fr);
                gap: 15px;
                padding: 20px;
            }

            .related-grid {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 480px) {
            .container {
                padding: 0 10px;
            }

            .posts-grid {
                gap: 10px;
            }

            .card-image {
                height: 120px;
            }

            .card-content {
                padding: 12px;
            }

            .modal-meta {
                grid-template-columns: 1fr;
            }
        }

        /* Custom scrollbar */
        ::-webkit-scrollbar {
            width: 12px;
        }

        ::-webkit-scrollbar-track {
            background: #1e1e1e;
        }

        ::-webkit-scrollbar-thumb {
            background: linear-gradient(var(--gold-primary), var(--dark-grey));
            border-radius: 6px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: var(--gold-primary);
        }
        
        
        /* Quick View Styles */
.quick-view {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.7);
    z-index: 1500;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.quick-view.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

.quick-view-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1400;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(3px);
}

.quick-view-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.quick-view-header {
    position: relative;
    height: 200px;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.quick-view-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quick-view-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(0,0,0,0.7);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background 0.3s ease;
}

.quick-view-close:hover {
    background: var(--gold-primary);
}

.quick-view-content {
    padding: 25px;
}

.quick-view-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gold-primary);
    margin-bottom: 15px;
    line-height: 1.3;
}

.quick-view-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(51, 51, 51, 0.3);
    border-radius: 6px;
}

.quick-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #ccc;
}

.quick-meta-item i {
    color: var(--gold-primary);
}

.quick-view-description {
    background: rgba(51, 51, 51, 0.3);
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.6;
    max-height: 120px;
    overflow-y: auto;
    border-left: 3px solid var(--gold-primary);
}

.quick-view-tags {
    margin-bottom: 20px;
}

.quick-view-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
}

.view-full-btn {
    background: linear-gradient(45deg, var(--gold-primary), var(--dark-grey));
    color: #ffffff;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.view-full-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(188, 149, 47, 0.4);
}

/* Enhanced card hover effects */
.post-card {
    transition: all 0.4s ease, transform 0.2s ease;
}

.post-card.quick-hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border-color: var(--gold-secondary);
    z-index: 100;
}