/* FotoShare.pl Premium Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg-dark: hsl(245, 30%, 6%);
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(168, 85, 247, 0.3);
    
    --primary: hsl(271, 91%, 65%);
    --primary-glow: hsla(271, 91%, 65%, 0.4);
    --secondary: hsl(325, 90%, 55%);
    --secondary-glow: hsla(325, 90%, 55%, 0.4);
    --accent: hsl(190, 95%, 50%);
    
    --text-main: hsl(0, 0%, 95%);
    --text-muted: hsl(240, 10%, 70%);
    --text-dark: hsl(240, 20%, 40%);
    
    --success: hsl(142, 76%, 45%);
    --danger: hsl(350, 89%, 60%);
    --warning: hsl(38, 92%, 50%);
    
    --shadow-sm: 0 2px 8px -2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 8px 30px -4px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 20px 50px -10px rgba(0, 0, 0, 0.8);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    outline: none;
}

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 10% 20%, hsla(270, 90%, 40%, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, hsla(325, 90%, 40%, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, hsla(245, 30%, 4%, 1) 0%, var(--bg-dark) 100%);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.4rem, 2vw, 1.8rem); }

a {
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.glass-panel:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.12);
}

/* Glow Text & Elements */
.text-glow {
    text-shadow: 0 0 20px var(--primary-glow);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Header & Navigation */
header.site-header {
    padding: 20px 5%;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 9, 21, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-dot {
    width: 10px;
    height: 10px;
    background: var(--secondary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--secondary-glow);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.nav-link:hover, .nav-link.active {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--primary-glow), 0 0 15px var(--secondary-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    color: #fff;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-danger:hover {
    background: hsl(350, 89%, 50%);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    padding: 120px 5% 80px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-tagline {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 20px;
}

.hero-title {
    margin-bottom: 25px;
    line-height: 1.1;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 700px;
    margin-inline: auto;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
}

/* Feature Showcase */
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 5%;
}

.showcase-card {
    padding: 40px 30px;
    text-align: left;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: inline-block;
}

.showcase-card h3 {
    margin-bottom: 15px;
}

.showcase-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Pricing Section */
.pricing-section {
    padding: 80px 5%;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-title {
    margin-bottom: 50px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    align-items: stretch;
}

.pricing-card {
    position: relative;
    padding: 50px 35px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-card.recommended {
    border-color: var(--primary);
    box-shadow: 0 10px 40px -5px var(--primary-glow);
}

.pricing-card.recommended::before {
    content: 'POLECANY';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 16px;
    border-radius: 20px;
    letter-spacing: 0.05em;
}

.pricing-name {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.pricing-price {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 30px;
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.pricing-currency {
    font-size: 1.5rem;
    font-weight: 600;
    margin-left: 5px;
}

.pricing-period {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 40px;
    flex-grow: 1;
}

.pricing-features li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features li::before {
    content: '✓';
    color: var(--accent);
    font-weight: bold;
}

/* Forms & Panels */
.auth-wrapper {
    min-height: calc(100vh - 180px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
}

.auth-card {
    width: 100%;
    max-width: 480px;
    padding: 45px 35px;
}

.auth-header {
    text-align: center;
    margin-bottom: 35px;
}

.auth-header h2 {
    margin-bottom: 10px;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    display: flex;
    align-items: flex-end;
    min-height: 38px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input {
    width: 100%;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    padding: 0 18px;
    border-radius: 8px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    box-sizing: border-box;
}

select.form-input {
    padding: 0 14px;
}

textarea.form-input {
    height: auto;
    padding: 12px 18px;
}

.form-input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 12px var(--primary-glow);
}

.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-size: 0.95rem;
    border-left: 4px solid transparent;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: hsl(0, 100%, 80%);
    border-left-color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    color: hsl(142, 76%, 80%);
    border-left-color: var(--success);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

/* Customer Panel (panel.php) */
.panel-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 5%;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.panel-title h2 {
    font-size: 2.2rem;
}

.panel-title p {
    color: var(--text-muted);
}

.panel-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    padding: 25px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 5px;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
}

.panel-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
}

@media (max-width: 900px) {
    .panel-content-grid {
        grid-template-columns: 1fr;
    }
}

.event-details-card, .qr-card, .create-event-card {
    padding: 30px;
    margin-bottom: 30px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 20px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 5px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    border: 1px solid var(--border-light);
}

.gallery-item img, .gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px;
    opacity: 0;
    transition: var(--transition);
}

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

.gallery-item-delete {
    align-self: flex-end;
    background: var(--danger);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.gallery-item-sender {
    font-size: 0.75rem;
    color: white;
}

/* QR Code Section */
.qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.qr-image {
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(255,255,255,0.1);
    max-width: 220px;
    height: auto;
}

.qr-link {
    font-family: monospace;
    background: rgba(255,255,255,0.05);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    word-break: break-all;
    border: 1px solid var(--border-light);
}

/* Guest Upload (e.php) */
.guest-upload-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 0 20px;
}

.guest-header {
    text-align: center;
    margin-bottom: 40px;
}

.guest-cover {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 20px;
    border: 1px solid var(--border-light);
}

.dropzone {
    border: 2px dashed rgba(255,255,255,0.2);
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: rgba(255,255,255,0.02);
}

.dropzone:hover, .dropzone.dragover {
    border-color: var(--primary);
    background: rgba(168, 85, 247, 0.05);
}

.dropzone-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.upload-progress-list {
    margin-top: 30px;
}

.upload-progress-item {
    background: rgba(255,255,255,0.03);
    padding: 12px 18px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    margin-bottom: 10px;
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    margin-top: 8px;
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    transition: width 0.1s linear;
}

.upload-status {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Live Wall (live.php) */
.live-wall-container {
    position: fixed;
    inset: 0;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.live-slide {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.live-slide img, .live-slide video {
    max-width: 100vw;
    max-height: 100vh;
    object-fit: contain;
    box-shadow: 0 0 100px rgba(0,0,0,0.8);
    z-index: 2;
    animation: zoomInFade 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.live-bg {
    position: absolute;
    inset: -20px;
    background-size: cover;
    background-position: center;
    filter: blur(25px) brightness(0.4);
    z-index: 1;
}

.live-overlay {
    position: absolute;
    bottom: 40px;
    left: 40px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    padding: 15px 30px;
    border-radius: 30px;
    z-index: 3;
    border: 1px solid rgba(255,255,255,0.1);
}

.live-overlay-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
}

.live-overlay-sender {
    font-size: 0.95rem;
    color: var(--text-muted);
}

@keyframes zoomInFade {
    0% {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Scrollbar customization */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.01);
}
::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.2);
}

/* Responsive Grid Classes for Forms */
.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 10px 0;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        font-size: 0.9rem;
        padding-left: 0;
    }

    .form-grid-2, .form-grid-3 {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }

    .panel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .panel-header .btn {
        width: 100%;
    }
    
    .panel-container {
        margin: 20px auto;
        padding: 0 15px;
    }

    .event-details-card, .qr-card, .create-event-card {
        padding: 20px 15px;
    }

    /* Lightbox mobile adjustments */
    .lightbox-nav {
        width: 45px;
        height: 45px;
        font-size: 2rem;
    }
    
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
}

/* Tooltip styles */
.tooltip-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    cursor: help;
    transform: translateY(-2px); /* Wyrównanie pionowe do wielkich liter */
}

.tooltip-icon {
    font-size: 0.75rem; /* Zwiększony znak zapytania */
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    border: 1px solid var(--border-light);
    width: 18px; /* Zwiększona szerokość */
    height: 18px; /* Zwiększona wysokość */
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-style: normal;
    font-weight: bold;
    transition: var(--transition);
}

.tooltip-container:hover .tooltip-icon {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 8px var(--primary-glow);
}

.tooltip-text {
    visibility: hidden;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 9, 21, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-light);
    color: var(--text-main);
    text-align: left;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    width: 220px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 100;
    pointer-events: none;
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: rgba(10, 9, 21, 0.95) transparent transparent transparent;
}

.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}
