/*
 * Prarasti Klientai Landing Page Styles
 * Version: 1.0.0
 * 
 * All classes are prefixed with 'pk-' to avoid conflicts with themes
 */

/* === CSS Reset for Plugin Scope === */
.pk-landing-container * {
    box-sizing: border-box;
}

.pk-landing-container {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #e2e8f0;
    overflow-x: hidden;
}

/* === Layout === */
.pk-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.pk-section {
    padding: 80px 0;
    position: relative;
}

.pk-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.pk-col {
    padding: 0 15px;
}

.pk-col-12 { width: 100%; }
.pk-col-6 { width: 50%; }
.pk-col-4 { width: 33.333%; }
.pk-col-3 { width: 25%; }

@media (max-width: 768px) {
    .pk-col-6, .pk-col-4, .pk-col-3 {
        width: 100%;
        margin-bottom: 30px;
    }
}

/* === Background === */
.pk-landing-container {
    background: linear-gradient(-45deg, #0B1120, #0F172A, #1E293B, #1F2937, #312E81, #1E1B4B);
    background-size: 600% 600%;
    animation: pk-gradient-animation 25s ease infinite;
    position: relative;
    min-height: 100vh;
}

@keyframes pk-gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* === Typography === */
.pk-h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #ffffff;
}

.pk-h2 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #ffffff;
}

.pk-h3 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    color: #ffffff;
}

.pk-text-center { text-align: center; }
.pk-text-left { text-align: left; }
.pk-text-right { text-align: right; }

.pk-text-primary { color: #3b82f6; }
.pk-text-secondary { color: #64748b; }
.pk-text-muted { color: #94a3b8; }

@media (max-width: 768px) {
    .pk-h1 { font-size: 2.5rem; }
    .pk-h2 { font-size: 2rem; }
    .pk-h3 { font-size: 1.25rem; }
}

/* === Buttons === */
.pk-btn {
    display: inline-block;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pk-btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.pk-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.4);
    color: #ffffff;
    text-decoration: none;
}

.pk-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.pk-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    text-decoration: none;
}

.pk-btn-large {
    padding: 18px 36px;
    font-size: 1.125rem;
}

/* === Hero Section === */
.pk-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: rgba(0, 0, 0, 0.2);
}

.pk-hero-content {
    position: relative;
    z-index: 2;
}

.pk-hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pk-hero-subtitle {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
    max-width: 600px;
}

@media (max-width: 768px) {
    .pk-hero {
        min-height: 80vh;
        padding: 60px 0;
    }
    
    .pk-hero-title {
        font-size: 2.5rem;
    }
    
    .pk-hero-subtitle {
        font-size: 1.125rem;
    }
}

/* === Analyzer Form === */
.pk-analyzer {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 3rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.pk-form-group {
    margin-bottom: 1.5rem;
}

.pk-form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #f8fafc;
}

.pk-form-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    transition: all 0.3s ease;
}

.pk-form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.pk-form-input::placeholder {
    color: #94a3b8;
}

.pk-form-select {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    cursor: pointer;
}

/* === Cards === */
.pk-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    height: 100%;
}

.pk-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(59, 130, 246, 0.3);
}

.pk-card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.pk-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

.pk-card-text {
    color: #cbd5e1;
    line-height: 1.6;
}

/* === Results Section === */
.pk-results {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 2rem;
}

.pk-lighthouse-score {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 2rem;
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    position: relative;
}

.pk-lighthouse-score.good {
    background: conic-gradient(from 0deg, #10b981 0deg, #10b981 var(--score-deg), #374151 var(--score-deg), #374151 360deg);
}

.pk-lighthouse-score.average {
    background: conic-gradient(from 0deg, #f59e0b 0deg, #f59e0b var(--score-deg), #374151 var(--score-deg), #374151 360deg);
}

.pk-lighthouse-score.poor {
    background: conic-gradient(from 0deg, #ef4444 0deg, #ef4444 var(--score-deg), #374151 var(--score-deg), #374151 360deg);
}

.pk-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.pk-metric {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.pk-metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    display: block;
}

.pk-metric-label {
    font-size: 0.875rem;
    color: #94a3b8;
    margin-top: 0.5rem;
}

/* === Countdown Timer === */
.pk-countdown {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.pk-countdown-item {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    min-width: 80px;
}

.pk-countdown-number {
    font-size: 2rem;
    font-weight: 700;
    color: #ef4444;
    display: block;
}

.pk-countdown-label {
    font-size: 0.75rem;
    color: #fca5a5;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* === FAQ Section === */
.pk-faq {
    background: rgba(0, 0, 0, 0.1);
}

.pk-faq-item {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.pk-faq-question {
    padding: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.pk-faq-question:hover {
    background: rgba(59, 130, 246, 0.1);
}

.pk-faq-question::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.pk-faq-question.active::after {
    transform: translateY(-50%) rotate(45deg);
}

.pk-faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    color: #cbd5e1;
}

.pk-faq-answer.active {
    padding: 0 1.5rem 1.5rem;
    max-height: 200px;
}

/* === Popup === */
.pk-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.pk-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.pk-popup {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: translateY(30px);
    transition: transform 0.3s ease;
}

.pk-popup-overlay.active .pk-popup {
    transform: translateY(0);
}

.pk-popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #94a3b8;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.pk-popup-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* === Loading States === */
.pk-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: pk-spin 1s ease-in-out infinite;
}

@keyframes pk-spin {
    to { transform: rotate(360deg); }
}

.pk-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.pk-btn.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: pk-spin 1s ease-in-out infinite;
}

/* === Animations === */
.pk-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.pk-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.pk-scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.4s ease;
}

.pk-scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* === Utilities === */
.pk-mb-0 { margin-bottom: 0; }
.pk-mb-1 { margin-bottom: 0.5rem; }
.pk-mb-2 { margin-bottom: 1rem; }
.pk-mb-3 { margin-bottom: 1.5rem; }
.pk-mb-4 { margin-bottom: 2rem; }

.pk-mt-0 { margin-top: 0; }
.pk-mt-1 { margin-top: 0.5rem; }
.pk-mt-2 { margin-top: 1rem; }
.pk-mt-3 { margin-top: 1.5rem; }
.pk-mt-4 { margin-top: 2rem; }

.pk-hidden { display: none; }
.pk-visible { display: block; }

/* === Responsive Design === */
@media (max-width: 1024px) {
    .pk-container {
        padding: 0 15px;
    }
    
    .pk-section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .pk-section {
        padding: 40px 0;
    }
    
    .pk-analyzer {
        padding: 1.5rem;
    }
    
    .pk-card {
        padding: 1.5rem;
    }
    
    .pk-countdown {
        gap: 0.5rem;
    }
    
    .pk-countdown-item {
        padding: 0.75rem;
        min-width: 60px;
    }
    
    .pk-countdown-number {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .pk-popup {
        padding: 1.5rem;
    }
    
    .pk-metrics {
        grid-template-columns: 1fr;
    }
    
    .pk-lighthouse-score {
        width: 100px;
        height: 100px;
        font-size: 1.5rem;
    }
}