/* ===========================
   GLOBALNI STILI & RESET
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #512BD4;
    --secondary-color: #1b6ec2;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    
    --dark-bg: #1e1e1e;
    --light-bg: #f8f9fa;
    --card-bg: #ffffff;
    --text-dark: #212529;
    --text-light: #6c757d;
    --border-color: #dee2e6;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.2);
    
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* ===========================
   NAVIGACIJA
   =========================== */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0;
}

.navbar .nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.navbar .nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.navbar .nav-links a:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* ===========================
   HERO SEKCIJA
   =========================== */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,101.3C1248,85,1344,75,1392,69.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.hero .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.tech-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.badge {
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.badge:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.badge-maui {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    color: white;
}

.badge-blazor {
    background: linear-gradient(135deg, #4E54C8 0%, #8F94FB 100%);
    color: white;
}

.badge-api {
    background: linear-gradient(135deg, #11998E 0%, #38EF7D 100%);
    color: white;
}

.badge-csharp {
    background: linear-gradient(135deg, #834D9B 0%, #D04ED6 100%);
    color: white;
}

.badge-ai {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

/* ===========================
   CONTAINER & LAYOUT
   =========================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    margin: 3rem 0;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100px;
    height: 3px;
    background: var(--secondary-color);
}

/* ===========================
   KARTICA
   =========================== */
.card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.card h4 {
    color: var(--secondary-color);
    margin: 1.5rem 0 1rem 0;
    font-size: 1.3rem;
}

.card p {
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.card ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.card ul li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.success-card {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(40, 167, 69, 0.05) 100%);
    border-left: 5px solid var(--success-color);
}

.conclusion-card {
    background: linear-gradient(135deg, rgba(81, 43, 212, 0.1) 0%, rgba(27, 110, 194, 0.05) 100%);
    border-left: 5px solid var(--primary-color);
}

/* ===========================
   CODE BLOCKS
   =========================== */
.code-block {
    background: var(--dark-bg);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
    overflow-x: auto;
    box-shadow: var(--shadow-sm);
}

.code-block pre {
    margin: 0;
    color: #f8f8f2;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.code-block code {
    color: #f8f8f2;
    text-shadow: 0 1px 0 rgba(0,0,0,0.5);
}

code {
    background: rgba(81, 43, 212, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--primary-color);
    font-weight: 600;
}

.file-structure {
    background: #282c34;
    color: #abb2bf;
    border-radius: 8px;
    padding: 1.5rem;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    overflow-x: auto;
}

.file-structure pre {
    margin: 0;
}

/* ===========================
   TABELE
   =========================== */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

table thead {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

table thead th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

table tbody tr:hover {
    background: rgba(81, 43, 212, 0.05);
}

table tbody td {
    padding: 1rem;
    vertical-align: top;
}

.requirements-table tbody tr:hover {
    background: rgba(40, 167, 69, 0.1);
}

.comparison-table tbody tr:hover {
    background: rgba(27, 110, 194, 0.1);
}

/* ===========================
   INFO BOXY
   =========================== */
.explanation {
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.1) 0%, rgba(23, 162, 184, 0.05) 100%);
    border-left: 4px solid var(--info-color);
    padding: 1rem 1.5rem;
    border-radius: 4px;
    margin: 1rem 0;
}

.explanation strong {
    color: var(--info-color);
}

.info-box {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2) 0%, rgba(255, 193, 7, 0.1) 100%);
    border-left: 4px solid var(--warning-color);
    padding: 1rem 1.5rem;
    border-radius: 4px;
    margin: 1rem 0;
}

.info-box strong {
    color: #856404;
}

/* ===========================
   GRID LAYOUTI
   =========================== */
.tech-grid,
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.tech-item,
.feature-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

.tech-item:hover,
.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.tech-item h4,
.feature-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.tech-item p,
.feature-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

/* ===========================
   SPECIAL LISTS
   =========================== */
.lessons-list {
    list-style: none;
    margin-left: 0;
}

.lessons-list li {
    padding: 1rem;
    margin-bottom: 1rem;
    background: white;
    border-left: 4px solid var(--info-color);
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.lessons-list li:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.lessons-list li strong {
    color: var(--info-color);
}

/* ===========================
   STATISTIKA
   =========================== */
.final-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.stat:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.stat h4 {
    font-size: 3rem;
    color: var(--primary-color);
    margin: 0;
    font-weight: bold;
}

.stat p {
    color: var(--text-light);
    margin: 0.5rem 0 0 0;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
    background: var(--dark-bg);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer p {
    margin: 0.5rem 0;
    color: rgba(255,255,255,0.8);
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .navbar .nav-links {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .tech-badges {
        flex-direction: column;
    }
    
    .code-block {
        font-size: 0.8rem;
    }
    
    table {
        font-size: 0.9rem;
    }
    
    table thead th,
    table tbody td {
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .card {
        padding: 1rem;
    }
    
    .code-block {
        padding: 1rem;
        font-size: 0.75rem;
    }
}

/* ===========================
   ANIMACIJE
   =========================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.6s ease-out;
}

/* ===========================
   PRINT STYLES
   =========================== */
@media print {
    body {
        background: white;
    }
    
    .navbar,
    .footer {
        display: none;
    }
    
    .card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid var(--border-color);
    }
    
    .hero {
        background: var(--primary-color);
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
}

/* ===========================
   SCROLLBAR STYLING
   =========================== */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}
