/* ==========================================================================
   PCeasy.pl - Pobierz Film - Styles
   Matches the WordPress theme exactly
   ========================================================================== */

/* ---------- CSS Custom Properties ---------- */
:root {
    --font-body: 'Space Grotesk', sans-serif;
    --background: 228 18% 8%;
    --foreground: 0 0% 100%;
    --card: 228 14% 13%;
    --card-foreground: 0 0% 100%;
    --primary: 193 100% 50%;
    --primary-foreground: 228 18% 8%;
    --secondary: 271 76% 53%;
    --muted: 228 12% 18%;
    --muted-foreground: 0 0% 65%;
    --border: 228 10% 22%;
    --ring: 193 100% 50%;
    --radius: 0.75rem;
    --text-secondary: 0 0% 88%;
    --glow-cyan: 0 0 20px hsl(193 100% 50% / 0.3);
    --glow-cyan-strong: 0 0 40px hsl(193 100% 50% / 0.4), 0 0 80px hsl(193 100% 50% / 0.1);
}

/* ---------- Reset ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border-color: hsl(var(--border));
}

body {
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; }
input { font-family: inherit; }

.hidden { display: none !important; }

/* ---------- Container ---------- */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* ---------- Text utilities ---------- */
.text-white { color: hsl(var(--foreground)); }
.text-primary { color: hsl(var(--primary)); }

.text-gradient-cyan {
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    background-image: linear-gradient(135deg, hsl(193 100% 50%), hsl(193 80% 70%));
}

/* ---------- Header ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    border-bottom: 1px solid hsl(var(--border) / 0.5);
    background-color: hsl(var(--background));
}

.header-inner {
    display: flex;
    height: 4rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-text {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.nav-desktop {
    display: none;
    align-items: center;
    gap: 0.25rem;
}

@media (min-width: 1024px) {
    .nav-desktop { display: flex; }
}

.nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    transition: color 0.2s;
    position: relative;
}

.nav-link:hover { color: hsl(var(--foreground)); }

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: hsl(var(--primary));
    transform-origin: bottom right;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform-origin: bottom left;
    transform: scaleX(1);
}

.nav-link-active {
    color: hsl(var(--foreground));
}

.nav-link-active::after {
    transform-origin: bottom left;
    transform: scaleX(1);
}

/* Mobile toggle */
.mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    background: none;
    border: none;
    color: hsl(var(--muted-foreground));
    transition: color 0.2s;
}

.mobile-toggle:hover { color: hsl(var(--foreground)); }

@media (min-width: 1024px) {
    .mobile-toggle { display: none; }
}

/* Mobile menu */
.mobile-menu {
    border-top: 1px solid hsl(var(--border) / 0.5);
    background-color: hsl(var(--background));
}

@media (min-width: 1024px) {
    .mobile-menu { display: none !important; }
}

.mobile-menu-inner {
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-link {
    display: block;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--foreground));
}

.mobile-link-active {
    color: hsl(var(--primary));
}

/* ---------- Main Content ---------- */
.main-content {
    padding-top: 4rem;
}

/* ---------- Hero Section ---------- */
.hero-section {
    padding: 5rem 0 4rem;
}

@media (min-width: 1024px) {
    .hero-section { padding: 8rem 0 5rem; }
}

.hero-inner {
    max-width: 42rem;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    border: 1px solid hsl(var(--primary) / 0.3);
    background: hsl(var(--primary) / 0.1);
    font-size: 0.75rem;
    font-weight: 500;
    color: hsl(var(--primary));
}

.hero-section h1 {
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.2;
    color: hsl(var(--foreground));
}

@media (min-width: 640px) {
    .hero-section h1 { font-size: 2.25rem; }
}

@media (min-width: 1024px) {
    .hero-section h1 { font-size: 3rem; }
}

.hero-desc {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    line-height: 1.6;
    max-width: 36rem;
}

@media (min-width: 1024px) {
    .hero-desc { font-size: 1.125rem; }
}

/* Download Form */
.download-form {
    display: flex;
    gap: 0.75rem;
    width: 100%;
    max-width: 36rem;
    flex-direction: column;
}

@media (min-width: 640px) {
    .download-form { flex-direction: row; }
}

.input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    color: hsl(var(--muted-foreground));
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    height: 3rem;
    padding: 0 1rem 0 2.75rem;
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border) / 0.5);
    background: hsl(var(--muted));
    color: hsl(var(--foreground));
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-wrapper input::placeholder {
    color: hsl(var(--muted-foreground));
}

.input-wrapper input:focus {
    border-color: hsl(var(--primary) / 0.5);
    box-shadow: 0 0 0 2px hsl(var(--primary) / 0.15);
}

#fetch-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 3rem;
    padding: 0 1.5rem;
    border-radius: var(--radius);
    border: none;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s;
    flex-shrink: 0;
}

#fetch-btn:hover {
    box-shadow: var(--glow-cyan-strong);
    transform: scale(1.02);
}

#fetch-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Error message */
.error-msg {
    width: 100%;
    max-width: 36rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    background: hsl(0 84% 60% / 0.1);
    border: 1px solid hsl(0 84% 60% / 0.3);
    color: hsl(0 84% 60%);
    font-size: 0.875rem;
    text-align: left;
}

/* Video Preview */
.video-preview {
    width: 100%;
    max-width: 36rem;
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid hsl(var(--border) / 0.5);
    background: hsl(var(--card));
    text-align: left;
    flex-direction: column;
}

@media (min-width: 640px) {
    .video-preview { flex-direction: row; }
}

.video-thumb-wrapper {
    position: relative;
    flex-shrink: 0;
    width: 100%;
    border-radius: 0.75rem;
    overflow: hidden;
}

@media (min-width: 640px) {
    .video-thumb-wrapper { width: 200px; }
}

.video-thumb-wrapper img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.video-duration {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
}

.video-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.video-info h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-channel {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    border: none;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    font-size: 0.8125rem;
    font-weight: 600;
    transition: all 0.3s;
    width: fit-content;
}

.btn-download:hover {
    box-shadow: var(--glow-cyan);
    transform: scale(1.03);
}

/* ---------- Info Section ---------- */
.info-section {
    padding: 4rem 0;
    border-top: 1px solid hsl(var(--border) / 0.5);
}

.info-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 2.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .info-grid { grid-template-columns: repeat(3, 1fr); }
}

.info-card {
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid hsl(var(--border) / 0.5);
    background: hsl(var(--card));
    transition: all 0.3s;
}

.info-card:hover {
    border-color: hsl(var(--primary) / 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px hsl(230 20% 4% / 0.5);
}

.info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
    margin-bottom: 1rem;
}

.info-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 0.5rem;
}

.info-card p {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
}

/* ---------- FAQ Section ---------- */
.faq-section {
    padding: 4rem 0;
    border-top: 1px solid hsl(var(--border) / 0.5);
}

.faq-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 2.5rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

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

.faq-card {
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid hsl(var(--border) / 0.5);
    background: hsl(var(--card));
}

.faq-card h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 0.5rem;
}

.faq-card p {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
}

/* ---------- Footer ---------- */
.footer {
    background: hsl(var(--card));
    border-top: 1px solid hsl(var(--border) / 0.5);
}

.footer-inner {
    padding: 4rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-desc {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
    max-width: 20rem;
}

.footer-col h4 {
    font-size: 0.75rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-col a {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    transition: color 0.2s;
}

.footer-col a:hover {
    color: hsl(var(--primary));
}

.footer-bottom {
    border-top: 1px solid hsl(var(--border) / 0.3);
}

.footer-bottom-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 0;
}

@media (min-width: 640px) {
    .footer-bottom-inner { flex-direction: row; }
}

.footer-bottom p {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-bottom-links a {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    transition: color 0.2s;
}

.footer-bottom-links a:hover {
    color: hsl(var(--primary));
}

.dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: hsl(var(--border));
}

/* ---------- Modal ---------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal {
    width: 100%;
    max-width: 28rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border) / 0.5);
    border-radius: 1rem;
    padding: 1.5rem;
    animation: modal-in 0.2s ease-out;
}

@keyframes modal-in {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

.modal-header h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: hsl(var(--foreground));
}

.modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    border: none;
    background: hsl(var(--muted));
    color: hsl(var(--muted-foreground));
    transition: all 0.2s;
}

.modal-close:hover {
    color: hsl(var(--foreground));
    background: hsl(var(--muted-foreground) / 0.2);
}

.modal-desc {
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Resolution list */
.resolution-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.resolution-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border) / 0.5);
    background: hsl(var(--muted) / 0.5);
    transition: all 0.2s;
    cursor: pointer;
}

.resolution-item:hover {
    border-color: hsl(var(--primary) / 0.5);
    background: hsl(var(--primary) / 0.05);
}

.resolution-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.resolution-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.resolution-badge-hd {
    background: hsl(var(--primary) / 0.15);
    color: hsl(var(--primary));
}

.resolution-badge-sd {
    background: hsl(var(--muted));
    color: hsl(var(--muted-foreground));
}

.resolution-badge-audio {
    background: hsl(271 76% 53% / 0.15);
    color: hsl(271 76% 53%);
}

.resolution-quality {
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--foreground));
}

.resolution-size {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

/* Download progress */
.download-progress {
    margin-top: 1rem;
    text-align: center;
}

.progress-bar {
    height: 6px;
    border-radius: 3px;
    background: hsl(var(--muted));
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    border-radius: 3px;
    background: hsl(var(--primary));
    width: 0%;
    transition: width 0.3s;
    animation: progress-pulse 1.5s ease-in-out infinite;
}

@keyframes progress-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.progress-text {
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
}

/* ---------- Animations ---------- */
@keyframes fade-in {
    0% { opacity: 0; transform: translateY(16px); }
    100% { opacity: 1; transform: translateY(0); }
}
