/* QRPass Custom Styles - Bootstrap Compatible */

/* Variables */
:root {
    --qrpass-primary: #0C6CF2;
    --qrpass-secondary: #4A90E2;
    --qrpass-gradient: linear-gradient(135deg, #0C6CF2 0%, #4A90E2 100%);
    --qrpass-light: #f8fafc;
    --qrpass-shadow: 0 10px 30px rgba(12, 108, 242, 0.1);
    --qrpass-shadow-hover: 0 20px 40px rgba(12, 108, 242, 0.2);
}

/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--qrpass-gradient);
    overflow-x: hidden;
}

/* Bootstrap Override - Navbar */
.qrpass-navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: var(--qrpass-shadow);
    transition: all 0.3s ease;
}

.qrpass-logo {
    color: var(--qrpass-primary);
}

.navbar-nav .nav-link {
    color: #333 !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--qrpass-primary) !important;
}

/* Custom Buttons */
.qrpass-btn-primary {
    background: var(--qrpass-gradient);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.qrpass-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(12, 108, 242, 0.3);
    color: white;
}

.qrpass-btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 50px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.qrpass-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
    transform: translateY(-2px);
}

/* Hero Section */
.qrpass-hero {
    background: var(--qrpass-gradient);
    color: white;
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
    margin-top: 76px; /* Account for fixed navbar */
}

.qrpass-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.1;
}

.qrpass-hero .hero-content {
    position: relative;
    z-index: 2;
}

.qrpass-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 1rem;
}

.qrpass-hero p {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* Page Hero (for gallery page) */
.qrpass-page-hero {
    background: var(--qrpass-gradient);
    color: white;
    position: relative;
    overflow: hidden;
    padding: 60px 0;
    margin-top: 76px;
}

.qrpass-page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.1;
}

.qrpass-page-hero .hero-content {
    position: relative;
    z-index: 2;
}

.qrpass-page-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 1rem;
}

/* Gallery Section */
.qrpass-gallery {
    padding: 80px 0;
}

.qrpass-section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: white;
}

.qrpass-section-title h2 {
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 1rem;
}

.qrpass-section-title p {
    font-size: 1.3rem;
    opacity: 0.95;
}

.qrpass-section-title.dark {
    color: #333;
}

.qrpass-section-title.dark h2 {
    color: #333;
    text-shadow: none;
}

.qrpass-section-title.dark p {
    color: #666;
}

/* Gallery Slider */
.qrpass-gallery-slider {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.qrpass-gallery-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 2rem;
}

.qrpass-gallery-item {
    min-width: 350px;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--qrpass-shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(12, 108, 242, 0.1);
    cursor: pointer;
}

.qrpass-gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--qrpass-shadow-hover);
}

.qrpass-qr-preview {
    position: relative;
    width: 100%;
    height: 220px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 1rem;
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    transition: all 0.3s ease;
}

.qrpass-qr-preview.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--qrpass-light);
}

.qrpass-qr-preview.loading::before {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid rgba(12, 108, 242, 0.3);
    border-top: 3px solid var(--qrpass-primary);
    border-radius: 50%;
    animation: qrpass-spin 1s linear infinite;
}

@keyframes qrpass-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.qrpass-gallery-item h3 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.qrpass-gallery-item p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.qrpass-gallery-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #888;
}

.qrpass-gallery-type {
    background: var(--qrpass-gradient);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.qrpass-gallery-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.qrpass-gallery-btn {
    background: rgba(12, 108, 242, 0.9);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 20px;
}

.qrpass-gallery-btn:hover {
    background: var(--qrpass-primary);
    transform: scale(1.1);
}

.qrpass-gallery-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: scale(1);
}

/* Gallery Controls (for gallery page) */
.qrpass-gallery-controls-section {
    background: var(--qrpass-light);
    border-bottom: 1px solid #e2e8f0;
    padding: 40px 0;
}

.qrpass-gallery-stats {
    color: #666;
    font-weight: 500;
}

.qrpass-filter-btn {
    background: #fff;
    border: 2px solid #e2e8f0;
    color: #666;
    padding: 8px 16px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    margin-right: 10px;
    margin-bottom: 10px;
}

.qrpass-filter-btn:hover,
.qrpass-filter-btn.active {
    background: var(--qrpass-primary);
    border-color: var(--qrpass-primary);
    color: white;
}

.qrpass-search-input {
    padding: 10px 40px 10px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    font-size: 0.9rem;
    width: 250px;
    transition: all 0.3s ease;
}

.qrpass-search-input:focus {
    outline: none;
    border-color: var(--qrpass-primary);
    box-shadow: 0 0 0 3px rgba(12, 108, 242, 0.1);
}

.qrpass-search-box {
    position: relative;
}

.qrpass-search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

/* Gallery Grid (for gallery page) */
.qrpass-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.qrpass-qr-card {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--qrpass-shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(12, 108, 242, 0.1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.qrpass-qr-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--qrpass-shadow-hover);
}

.qrpass-qr-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--qrpass-gradient);
}

.qrpass-qr-card .qrpass-qr-preview {
    margin-bottom: 15px;
}

.qrpass-qr-card h3 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 8px;
    font-weight: 600;
    line-height: 1.4;
}

.qrpass-qr-card p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.qrpass-qr-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.qrpass-qr-type {
    background: var(--qrpass-gradient);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.qrpass-qr-stats {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #888;
}

.qrpass-qr-stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

.qrpass-qr-date {
    font-size: 0.8rem;
    color: #aaa;
}

/* Features Section */
.qrpass-features {
    background: white;
    padding: 80px 0;
}

.qrpass-feature-card {
    background: linear-gradient(145deg, #f8fafc, #e2e8f0);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(12, 108, 242, 0.1);
    height: 100%;
}

.qrpass-feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--qrpass-shadow);
}

.qrpass-feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: var(--qrpass-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qrpass-feature-card h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.qrpass-feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Demo Section */
.qrpass-demo {
    background: linear-gradient(135deg, #f8fafc 0%, #e3eeff 100%);
    padding: 80px 0;
}

.qrpass-demo-text h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.qrpass-demo-text p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.qrpass-demo-visual {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.qrpass-sample-image {
    width: 100%;
    height: 300px;
    background: var(--qrpass-gradient);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    transition: background-image 0.8s ease-in-out;
}

.qrpass-qr-overlay {
    position: absolute;
    top: 40px;
    right: 40px;
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.0);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    animation: qrpass-float 3s ease-in-out infinite;
}

@keyframes qrpass-float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Loading States */
.qrpass-loading-card {
    background: var(--qrpass-light);
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--qrpass-shadow);
    animation: qrpass-pulse 1.5s ease-in-out infinite alternate;
}

@keyframes qrpass-pulse {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

.qrpass-loading-placeholder {
    height: 220px;
    background: #e2e8f0;
    border-radius: 15px;
    margin-bottom: 15px;
}

.qrpass-loading-text {
    height: 20px;
    background: #e2e8f0;
    border-radius: 10px;
    margin-bottom: 10px;
}

.qrpass-loading-text.short {
    width: 60%;
}

/* Empty State */
.qrpass-empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #666;
}

.qrpass-empty-state-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--qrpass-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.3;
}

.qrpass-empty-state h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

/* Pagination */
.qrpass-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    padding: 20px;
}

.qrpass-pagination-btn {
    background: #fff;
    border: 2px solid #e2e8f0;
    color: #666;
    padding: 10px 15px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 45px;
    text-align: center;
}

.qrpass-pagination-btn:hover,
.qrpass-pagination-btn.active {
    background: var(--qrpass-primary);
    border-color: var(--qrpass-primary);
    color: white;
}

.qrpass-pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Footer */
.qrpass-footer {
    background: #2d3748 !important;
}

.qrpass-footer .text-primary {
    color: var(--qrpass-primary) !important;
}

.qrpass-footer a:hover {
    color: white !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .qrpass-hero h1,
    .qrpass-page-hero h1 {
        font-size: 2.2rem;
    }
    
    .qrpass-section-title h2 {
        font-size: 2.2rem;
    }
    
    .qrpass-gallery-item {
        min-width: 280px;
    }
    
    .qrpass-gallery-controls {
        display: none;
    }
    
    .qrpass-search-input {
        width: 100%;
    }
    
    .qrpass-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .qrpass-pagination {
        flex-wrap: wrap;
    }
}