/* 
Tehnološki Trendovi - Main Stylesheet
Tema: Računarske tehnologije u Srbiji
*/

/* ==================== */
/* OSNOVNI STILOVI */
/* ==================== */

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary-color: #10b981;
    --secondary-dark: #059669;
    --secondary-light: #34d399;
    --accent-color: #8b5cf6;
    --dark-color: #1e293b;
    --dark-light: #334155;
    --light-color: #f8fafc;
    --gray-color: #94a3b8;
    --gray-light: #e2e8f0;
    --gray-dark: #64748b;
    --success-color: #22c55e;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s ease;
    --container-width: 1200px;
    --header-height: 80px;
    --font-primary: 'Roboto', 'Arial', sans-serif;
    --font-secondary: 'Montserrat', 'Helvetica', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

ul, ol {
    list-style-position: inside;
    margin-bottom: 1.5rem;
}

button, .btn {
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: none;
    outline: none;
    display: inline-block;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    color: white;
}

.btn-tertiary {
    background-color: transparent;
    color: var(--dark-color);
    border: 1px solid var(--gray-color);
}

.btn-tertiary:hover {
    background-color: var(--gray-light);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1.5rem;
}

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

section {
    padding: 4rem 0;
}

/* ==================== */
/* HEADER */
/* ==================== */

header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

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

.logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
}

.logo h1 {
    font-size: 1.5rem;
    margin: 0;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: var(--dark-color);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

nav ul li a:hover:after,
nav ul li a.active:after {
    width: 100%;
}

nav ul li a.active {
    color: var(--primary-color);
}

/* ==================== */
/* HERO SECTION */
/* ==================== */

.hero {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9) 0%, rgba(139, 92, 246, 0.9) 100%);
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 3rem;
    color: white;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.hero .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    background-color: white;
    color: var(--primary-color);
}

.hero .btn:hover {
    background-color: var(--light-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* ==================== */
/* FEATURED POSTS */
/* ==================== */

.featured-posts h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

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

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.post-image {
    height: 200px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding: 1.5rem;
}

.post-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.post-content p {
    color: var(--gray-dark);
    margin-bottom: 1rem;
}

.read-more {
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.read-more:after {
    content: '→';
    margin-left: 0.5rem;
    transition: var(--transition);
}

.read-more:hover:after {
    margin-left: 0.75rem;
}

/* ==================== */
/* TIMELINE */
/* ==================== */

.timeline {
    background-color: var(--gray-light);
}

.timeline h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-container:before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background-color: var(--primary-color);
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 50%;
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item:nth-child(even) {
    padding-right: 0;
    padding-left: 50%;
    justify-content: flex-start;
}

.timeline-date {
    position: absolute;
    top: 0;
    right: calc(50% + 20px);
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 500;
}

.timeline-item:nth-child(even) .timeline-date {
    right: auto;
    left: calc(50% + 20px);
}

.timeline-content {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    width: calc(100% - 50px);
}

.timeline-content h3 {
    margin-bottom: 0.5rem;
}

.timeline-content p {
    margin-bottom: 0;
}

/* ==================== */
/* ADMIN INTERFACE */
/* ==================== */

.admin-interface {
    text-align: center;
}

.admin-interface h2 {
    margin-bottom: 2rem;
}

.admin-frame {
    width: 100%;
    height: 400px;
    border: 2px solid var(--gray-light);
    border-radius: var(--border-radius);
    background-color: var(--dark-light);
    background-image: url('images/11.jpg');
    background-size: cover;
    background-position: center;
}

/* ==================== */
/* BLOG POSTS PAGE */
/* ==================== */

.page-header {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 3rem 0;
    position: relative;
}

.page-header:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9) 0%, rgba(139, 92, 246, 0.9) 100%);
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h2 {
    color: white;
    margin-bottom: 0.5rem;
}

.page-header p {
    margin-bottom: 0;
}

.blog-posts {
    padding: 4rem 0;
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.post-item {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.post-item .post-image {
    height: 100%;
}

.post-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--gray-dark);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.post-meta span {
    display: flex;
    align-items: center;
}

.post-meta i {
    margin-right: 0.5rem;
}

/* ==================== */
/* POST DETAIL */
/* ==================== */

.post-detail {
    padding: 4rem 0;
}

.post-header {
    text-align: center;
    margin-bottom: 2rem;
}

.post-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.post-featured-image {
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.post-content {
    max-width: 800px;
    margin: 0 auto;
}

.post-content h3 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

.post-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.post-content ul, 
.post-content ol {
    margin-left: 1.5rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-quote {
    background-color: var(--gray-light);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.post-quote p {
    font-style: italic;
    margin-bottom: 0.5rem;
}

.post-quote cite {
    display: block;
    text-align: right;
    font-weight: 500;
}

.post-conclusion {
    background-color: var(--gray-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
}

.post-tags {
    margin: 2rem 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.post-tags span {
    font-weight: 500;
    margin-right: 1rem;
}

.post-tags ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
}

.post-tags li {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.post-tags a {
    display: block;
    background-color: var(--gray-light);
    color: var(--dark-color);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.post-tags a:hover {
    background-color: var(--primary-color);
    color: white;
}

.post-share {
    margin: 2rem 0;
    display: flex;
    align-items: center;
}

.post-share span {
    font-weight: 500;
    margin-right: 1rem;
}

.social-share {
    display: flex;
    list-style: none;
    margin: 0;
}

.social-share li {
    margin-right: 0.75rem;
}

.social-share a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--gray-light);
    color: var(--dark-color);
    transition: var(--transition);
}

.social-share a:hover {
    background-color: var(--primary-color);
    color: white;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin: 4rem 0 2rem;
    gap: 2rem;
}

.prev-post, .next-post {
    flex: 1;
}

.next-post {
    text-align: right;
}

.nav-link {
    display: block;
    padding: 1.5rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.nav-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.nav-direction {
    display: block;
    font-size: 0.9rem;
    color: var(--gray-dark);
    margin-bottom: 0.5rem;
}

.nav-title {
    font-weight: 500;
    color: var(--dark-color);
}

.related-posts {
    background-color: var(--gray-light);
}

.related-posts h3 {
    text-align: center;
    margin-bottom: 2.5rem;
}

/* ==================== */
/* ABOUT PAGE */
/* ==================== */

.about-section {
    padding: 4rem 0;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.values-list {
    list-style-type: none;
    margin-left: 0;
}

.values-list li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

.values-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.team-section {
    background-color: var(--gray-light);
    padding: 4rem 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem;
}

.team-member {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.team-member img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.team-member h3 {
    margin: 1rem 0 0.25rem;
    font-size: 1.25rem;
}

.team-member p {
    margin: 0 0 1rem;
    padding: 0 1rem;
}

.team-member p:first-of-type {
    color: var(--primary-color);
    font-weight: 500;
}

.achievements-section {
    padding: 4rem 0;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.achievement-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.achievement-icon {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.achievement-card h4 {
    margin-bottom: 1rem;
}

.achievement-card p {
    margin-bottom: 0;
    color: var(--gray-dark);
}

.partners-section {
    background-color: var(--gray-light);
    padding: 4rem 0;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
    align-items: center;
}

.partner-logo {
    background-color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
}

.partner-logo img {
    max-height: 60px;
    max-width: 150px;
    object-fit: contain;
}

/* ==================== */
/* CONTACT PAGE */
/* ==================== */

.contact-section {
    padding: 4rem 0;
}

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

.contact-info h3, 
.contact-form h3 {
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    margin-bottom: 1.5rem;
}

.info-icon {
    color: var(--primary-color);
    margin-right: 1rem;
    display: flex;
    align-items: flex-start;
}

.info-text h4 {
    margin-bottom: 0.25rem;
}

.info-text p {
    margin-bottom: 0;
    color: var(--gray-dark);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-color);
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 24px;
    width: 24px;
    background-color: #eee;
    border-radius: 4px;
}

.checkbox-container:hover input ~ .checkmark {
    background-color: #ccc;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--primary-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 9px;
    top: 5px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.map-section {
    padding-bottom: 4rem;
}

.map-section h3 {
    text-align: center;
    margin-bottom: 2rem;
}

.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

/* Modal Thank You */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    margin: auto;
    padding: 2rem;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
}

.thank-you-message {
    text-align: center;
}

.success-icon {
    color: var(--success-color);
    margin-bottom: 1rem;
}

/* ==================== */
/* FOOTER */
/* ==================== */

footer {
    background-color: var(--dark-color);
    color: white;
    padding: 4rem 0 2rem;
}

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

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.footer-logo h3 {
    color: white;
    margin-bottom: 1rem;
}

.footer-links h4,
.footer-contact h4 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--gray-color);
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.footer-contact p {
    margin-bottom: 0.75rem;
    color: var(--gray-color);
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 0.75rem;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--dark-light);
    color: white;
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--dark-light);
}

.footer-bottom p {
    margin-bottom: 0;
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* ==================== */
/* COOKIE BANNER */
/* ==================== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
    z-index: 999;
    display: none;
}

.cookie-content {
    padding: 1.5rem;
    max-width: var(--container-width);
    margin: 0 auto;
}

.cookie-content h3 {
    margin-bottom: 0.5rem;
}

.cookie-content p {
    margin-bottom: 1rem;
    max-width: 800px;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cookie-more {
    font-size: 0.9rem;
}

/* ==================== */
/* RESPONSIVE STYLES */
/* ==================== */

@media (max-width: 1024px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .timeline-container:before {
        left: 30px;
    }
    
    .timeline-item {
        padding-right: 0;
        padding-left: 80px;
        justify-content: flex-start;
    }
    
    .timeline-item:nth-child(even) {
        padding-left: 80px;
    }
    
    .timeline-date {
        right: auto;
        left: 0;
    }
    
    .timeline-item:nth-child(even) .timeline-date {
        left: 0;
    }
    
    .timeline-content {
        width: 100%;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .next-post {
        text-align: left;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .post-item {
        grid-template-columns: 1fr;
    }
    
    .post-item .post-image {
        height: 200px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-buttons button {
        width: 100%;
    }
}

@media (max-width: 576px) {
    header .container {
        flex-direction: column;
        height: auto;
        padding: 1rem;
    }
    
    .logo {
        margin-bottom: 1rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0 1rem 0.5rem;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero h2 {
        font-size: 1.75rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero .btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-logo {
        align-items: center;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .footer-links, 
    .footer-contact {
        text-align: center;
    }
    
    .footer-contact p {
        justify-content: center;
    }
}
