/* CSS Reset */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}

/* Modern Variables */
:root {
    --primary-color: #0066FF;
    --primary-dark: #0052CC;
    --secondary-color: #6B7280;
    --background: #FFFFFF;
    --background-alt: #F3F4F6;
    --text-color: #111827;
    --text-light: #6B7280;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset i osnovni stilovi */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.5;
    color: var(--text-color);
    background: var(--background);
}

/* Navigacija */
nav {
    background: var(--background);
    box-shadow: var(--shadow);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

nav .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    max-width: 200px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    width: 100%;
}

.logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo span {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-left: auto;
}

.language-selector {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: none;
    border: 1px solid var(--background-alt);
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-color);
    transition: var(--transition);
    white-space: nowrap;
}

.lang-switch:hover {
    background: var(--background-alt);
}

.lang-switch.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.lang-switch i {
    font-size: 0.875rem;
}

/* Responsive Design - Navigation */
@media (max-width: 768px) {
    nav .container {
        padding: 0 1rem;
    }

    .nav-content {
        flex-direction: column;
        gap: 1rem;
    }

    .logo {
        margin: 0 auto;
    }

    .nav-links {
        margin: 0 auto;
    }

    .language-selector {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Blog specifični stilovi */

/* Blog Hero Section */
.blog-hero {
    padding: 4rem 0;
    background: var(--background-alt);
    text-align: left;
}

.blog-hero .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.blog-hero .logo-section {
    flex: 0 0 200px;
}

.blog-hero .content-section {
    flex: 1;
}

.blog-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.blog-hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
}

/* Categories Section */
.categories {
    padding: 4rem 0;
    background: var(--background-alt);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.category-card {
    background: var(--background);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

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

.category-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.category-card h3 {
    margin: 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
}

.category-card span {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Blog Cards */
.posts-grid, .featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.post-card, .featured-post {
    background: var(--background);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.featured-post img,
.post-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.post-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

.category {
    color: var(--primary-color);
    font-weight: 500;
}

.post-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.post-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.featured-post {
    background: var(--background);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.featured-post img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.featured-post .post-content {
    padding: 1.5rem;
}

.post-card {
    background: var(--background);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-card .post-content {
    padding: 1.5rem;
}

/* Tips Page */
.tips-grid {
    padding: 4rem 0;
}

.tip-card {
    background: var(--background);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    transition: var(--transition);
}

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

.tip-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.tip-content {
    padding: 2rem;
}

.tip-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.tip-content ul {
    list-style-type: none;
    margin-bottom: 1.5rem;
}

.tip-content ul li {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.tip-content ul li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* Case Studies */
.case-study {
    background: var(--background);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    transition: var(--transition);
}

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

.case-header img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.case-meta {
    padding: 2rem;
    border-bottom: 1px solid var(--background-alt);
}

.case-meta h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.industry {
    color: var(--text-light);
    font-size: 0.875rem;
}

.case-content {
    padding: 2rem;
}

.case-content h4 {
    color: var(--text-color);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.case-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Read More Button */
.read-more {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    margin-top: auto;
    transition: var(--transition);
}

.read-more:hover {
    background: var(--primary-dark);
    transform: translateX(4px);
}

.read-more i {
    margin-left: 0.5rem;
}

/* Footer */
.site-footer {
    background: var(--background);
    padding: 4rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--background-alt);
}

.footer-content {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--background-alt);
}

.footer-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.footer-logo img {
    width: 120px;
    height: auto;
    margin-bottom: 1rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-bottom {
    margin-top: 2rem;
    text-align: center;
    background: var(--primary-color);
    padding: 1rem;
    border-radius: var(--border-radius);
}

.footer-bottom p {
    color: white;
    margin: 0;
    font-weight: 500;
}

/* Newsletter Section Styles */
.newsletter-section {
    background: var(--primary-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    margin: 2rem auto;
    max-width: 800px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.newsletter-section h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.newsletter-section p {
    color: white;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
    opacity: 0.95;
}

.input-group {
    display: flex;
    gap: 1rem;
    margin: 0 auto;
    max-width: 500px;
}

.input-group input[type="email"] {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    color: #333;
}

.input-group input[type="email"]::placeholder {
    color: #666;
}

.input-group input[type="email"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.input-group .btn-primary {
    padding: 0.75rem 2rem;
    background: #2ecc71;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.input-group .btn-primary:hover {
    background: #27ae60;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .input-group {
        flex-direction: column;
        padding: 0 1rem;
    }
    
    .input-group input[type="email"],
    .input-group .btn-primary {
        width: 100%;
    }

    .newsletter-section {
        margin: 2rem 1rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-hero {
        padding: 4rem 1rem;
    }

    .blog-hero .container {
        flex-direction: column;
        text-align: center;
    }

    .blog-hero .logo-section {
        margin-bottom: 2rem;
    }

    .blog-hero h1 {
        font-size: 2rem;
    }

    .post-card img, .featured-post img {
        height: 200px;
    }

    .case-header img {
        height: 200px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .featured-grid,
    .posts-grid,
    .categories-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-card,
.featured-post,
.tip-card,
.case-study {
    animation: fadeIn 0.6s ease-out forwards;
}
