/* 
 * CRM Bázis - Premium Vanilla CSS
 * Modern Hungarian startup style
 */

:root {
    /* Premium Color Palette */
    --color-primary: #10B981; /* Emerald Green */
    --color-primary-dark: #059669;
    --color-accent: #CE2939; /* Hungarian Red */
    --color-bg: #F8FAFC;
    --color-surface: #FFFFFF;
    --color-text: #0F172A;
    --color-text-muted: #64748B;
    --color-border: #E2E8F0;
    
    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
    
    /* Spacing & Layout */
    --container-width: 1200px;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;
    --spacing-xxl: 8rem;
    
    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 40px -10px rgba(16, 185, 129, 0.3);
    --radius-md: 0.75rem;
    --radius-lg: 1.5rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

.page-transition-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
    animation: fadeInPage 0.4s ease-out;
    opacity: 1;
    transform: none;
}

@keyframes fadeInPage {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

.page-exit .page-transition-wrapper {
    animation: fadeOutPage 0.3s ease-in forwards !important;
}

@keyframes fadeOutPage {
    from { opacity: 1; transform: none; }
    to { opacity: 0; transform: translateY(-10px); }
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-text);
    letter-spacing: -0.03em;
}

a { color: var(--color-primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--color-primary-dark); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.text-primary { color: var(--color-primary); }
.text-accent { color: var(--color-accent); }
.text-gradient {
    background: linear-gradient(135deg, var(--color-primary), #3B82F6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    border-radius: 3rem;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-align: center;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    color: white;
}

.btn-outline {
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border-color: var(--color-border);
    color: var(--color-text);
}

.btn-outline:hover {
    border-color: var(--color-text);
    background-color: var(--color-surface);
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

@keyframes attention-pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.8); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(16, 185, 129, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.animate-attention {
    animation: attention-pulse 1.2s ease-in-out 3;
}

/* Header & Navigation */
.site-header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

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

.brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--color-primary), #059669);
    color: white;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.brand-icon svg { width: 24px; height: 24px; }

.brand-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    color: var(--color-text);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-text);
    cursor: pointer;
}

.mobile-menu-toggle svg { width: 28px; height: 28px; }

.main-nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-list {
    display: flex;
    gap: 2.5rem;
}

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

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

/* Main Content */
.main-content { flex: 1; }

/* Hero Section */
.hero {
    padding: var(--spacing-xxl) 0 var(--spacing-xl);
    background-color: var(--color-bg);
    position: relative;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-bg-glow-2 {
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(206, 41, 57, 0.08) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-inner {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--color-surface);
    color: var(--color-text);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: var(--spacing-md);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-lg);
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* CSS Mockup */
.hero-visual {
    position: relative;
    perspective: 1000px;
}

.dashboard-mockup {
    background: var(--color-surface);
    border-radius: 1.5rem;
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow: var(--shadow-lg), 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transform: rotateY(-5deg) rotateX(5deg);
    transition: var(--transition);
}

.dashboard-mockup:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.mockup-header {
    background: #F1F5F9;
    padding: 1rem;
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--color-border);
}

.mockup-header .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot.red { background: #FF5F56; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #27C93F; }

.mockup-body {
    display: flex;
    height: 400px;
}

.mockup-sidebar {
    width: 80px;
    background: #F8FAFC;
    border-right: 1px solid var(--color-border);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mockup-sidebar-item {
    width: 100%;
    height: 30px;
    background: #E2E8F0;
    border-radius: 0.5rem;
}

.mockup-content {
    flex: 1;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    background: #F8FAFC;
}

.mockup-card {
    background: var(--color-surface);
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.mockup-card.full {
    grid-column: 1 / -1;
}

/* Features Section */
.features {
    padding: var(--spacing-xxl) 0;
    background-color: var(--color-surface);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

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

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--color-text);
    z-index: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(59, 130, 246, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -10px rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
    background-color: var(--color-surface);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--color-primary), #3B82F6);
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    color: white;
    box-shadow: var(--shadow-md);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-glow);
}

.feature-icon svg { width: 32px; height: 32px; }

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

.card-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 1rem;
    transition: gap 0.3s ease;
    margin-top: auto;
}

.card-action svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.feature-card:hover .card-action {
    gap: 0.75rem;
}

.feature-card:hover .card-action svg {
    transform: translateX(4px);
}

/* Subpages */
.page-container {
    padding: var(--spacing-xl) var(--spacing-md) var(--spacing-xxl);
    max-width: 900px;
}

.back-btn {
    margin-bottom: var(--spacing-xl);
    display: inline-flex;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
}

.page-title {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-sm);
}

.page-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-xl);
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    background-color: var(--color-surface);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card.popular {
    border: 2px solid var(--color-primary);
    box-shadow: var(--shadow-lg);
    transform: scale(1.05);
}

.badge-popular {
    position: absolute;
    top: -12px;
    right: 20px;
    background-color: var(--color-primary);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: bold;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.pricing-card .price {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--color-text);
    margin-bottom: 2rem;
    font-family: var(--font-display);
}

.pricing-card .price span {
    font-size: 1rem;
    color: var(--color-text-muted);
    font-weight: normal;
}

.pricing-card ul {
    margin-bottom: 2.5rem;
    flex: 1;
}

.pricing-card ul li {
    margin-bottom: 1rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pricing-card ul li::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--color-primary);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: bold;
}

.pricing-card .btn { width: 100%; }

/* Article List */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.article-card {
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--color-border);
}

.article-date {
    font-size: 0.875rem;
    color: var(--color-primary);
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.article-card h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

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

/* Content Block (About) */
.content-block h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.content-block p {
    margin-bottom: 1.5rem;
    color: var(--color-text-muted);
    font-size: 1.125rem;
}

.content-block .lead-text {
    font-size: 1.5rem;
    color: var(--color-text);
    font-weight: 500;
    line-height: 1.4;
}

.content-block ul {
    list-style-type: none;
    padding-left: 0;
}

.content-block ul li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--color-text-muted);
    font-size: 1.125rem;
}

.content-block ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background-color: var(--color-primary);
    border-radius: 50%;
}

/* Footer */
.site-footer {
    background-color: #0F172A;
    color: white;
    padding-top: var(--spacing-xxl);
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: var(--spacing-xl);
}

.footer-brand .brand-text { color: white; }
.footer-desc {
    margin-top: 1.5rem;
    color: #94A3B8;
    max-width: 300px;
    font-size: 1.1rem;
}

.footer-links h4, .footer-contact h4 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-links ul li { margin-bottom: 0.75rem; }
.footer-links a { color: #94A3B8; }
.footer-links a:hover { color: white; }
.footer-contact p { color: #94A3B8; margin-bottom: 0.75rem; }

.footer-bottom {
    border-top: 1px solid #1E293B;
    padding: 2rem 0;
    text-align: center;
    color: #64748B;
}

/* Scroll to Top */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.scroll-to-top svg { width: 24px; height: 24px; }

/* Modals & Forms */
.modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000; opacity: 0; visibility: hidden; transition: var(--transition);
    padding: 1rem;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content {
    background: var(--color-surface); padding: 2.5rem; border-radius: var(--radius-lg);
    width: 100%; max-width: 500px; position: relative;
    transform: translateY(20px); transition: var(--transition);
    box-shadow: var(--shadow-lg);
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
}
.modal-overlay.active .modal-content { transform: translateY(0); }
.modal-close {
    position: absolute; top: 1rem; right: 1rem; background: none; border: none;
    font-size: 1.5rem; cursor: pointer; color: var(--color-text-muted);
}
.modal-close:hover { color: var(--color-accent); }

.modal-form { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group label { font-size: 0.875rem; font-weight: 600; color: var(--color-text); }
.form-group input {
    padding: 0.75rem; border: 1px solid var(--color-border);
    border-radius: var(--radius-md); font-family: var(--font-sans);
}
.form-group input:focus { outline: none; border-color: var(--color-primary); }
.w-full { width: 100%; }

/* Form Validation */
.invalid-feedback {
    display: none;
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: -0.25rem;
}
.was-validated input:invalid {
    border-color: #ef4444;
}
.was-validated input:invalid:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}
.was-validated input:invalid ~ .invalid-feedback {
    display: block;
}

/* Animated Tiles (Shop) */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-top: 2rem; }
.animated-tile {
    background: var(--color-surface); padding: 2rem; border-radius: var(--radius-lg);
    border: 1px solid var(--color-border); box-shadow: var(--shadow-sm);
    opacity: 0; transform: translateY(30px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.animated-tile:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

/* Video Modal */
.video-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--radius-md); }
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.modal-content.video-modal { max-width: 800px; padding: 1rem; }

/* Responsive */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero-content { margin: 0 auto; }
    .hero-actions { justify-content: center; }
    .hero-visual { display: none; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-card.popular { transform: scale(1); }
}

@media (max-width: 768px) {
    :root {
        --spacing-xxl: 4rem;
        --spacing-xl: 2.5rem;
        --spacing-lg: 1.5rem;
    }

    .hero-title { font-size: 2.5rem; }
    .page-title { font-size: 2.5rem; }
    .section-header h2 { font-size: 2.25rem; }
    
    .hero-actions { flex-direction: column; }
    .btn-large { width: 100%; }
    .feature-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
    
    .form-row { grid-template-columns: 1fr; }
    .modal-content { padding: 1.5rem; }
    
    .mobile-menu-toggle { display: block; }
    .main-nav {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-md);
    }
    .main-nav.active { display: flex; }
    .nav-list { flex-direction: column; gap: 1.5rem; width: 100%; text-align: center; }
    .main-nav .btn { width: 100%; margin-top: 1.5rem; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .page-title { font-size: 2rem; }
    .section-header h2 { font-size: 1.75rem; }
    .hero-subtitle, .page-subtitle, .section-header p { font-size: 1.1rem; }
    .animated-tile { padding: 1.5rem; }
}
