/*
Theme Name: Katalog Proizvoda
Theme URI: https://katalog-proizvoda.local
Author: Katalog Proizvoda
Author URI: https://katalog-proizvoda.local
Description: Profesionalni WordPress theme za katalog personalizovanih proizvoda
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: katalog-proizvoda
Domain Path: /languages
*/

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #2C3E50;
  background-color: #FFFFFF;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 48px; }
h2 { font-size: 32px; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }
h5 { font-size: 18px; }
h6 { font-size: 16px; }

a {
  color: #1a3a52;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #FF6B35;
}

button, .button {
  font-family: 'Inter', sans-serif;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.button-primary {
  background-color: #1a3a52;
  color: #FFFFFF;
}

.button-primary:hover {
  background-color: #0f2438;
}

.button-accent {
  background-color: #FF6B35;
  color: #FFFFFF;
}

.button-accent:hover {
  background-color: #e55a2b;
}

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

@media (min-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* Header */
header {
  background-color: #FFFFFF;
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

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

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

.logo img {
  width: 40px;
  height: 40px;
}

.logo-text h1 {
  font-size: 20px;
  margin: 0;
  color: #1a3a52;
}

.logo-text p {
  font-size: 12px;
  color: #7a8a9a;
  margin: 0;
}

.header-buttons {
  display: flex;
  gap: 0.5rem;
}

.header-buttons button {
  padding: 8px 16px;
  font-size: 14px;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #1a3a52 0%, #2C3E50 100%);
  color: #FFFFFF;
  padding: 6rem 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="1200" height="400" fill="url(%23grid)"/></svg>');
  opacity: 0.1;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero h2 {
  font-size: 48px;
  margin-bottom: 1rem;
  color: #FFFFFF;
}

.hero p {
  font-size: 18px;
  margin-bottom: 2rem;
  color: #e0e0e0;
}

.hero .cta {
  font-size: 20px;
  font-weight: 700;
  color: #FF6B35;
}

/* Main Content */
main {
  padding: 4rem 1rem;
}

/* Section */
.section {
  margin-bottom: 4rem;
}

.section-header {
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 36px;
  color: #1a3a52;
  margin-bottom: 0.5rem;
}

.section-header::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #FF6B35;
  border-radius: 2px;
  margin-top: 1rem;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.product-card {
  background-color: #FFFFFF;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.product-card:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
}

.product-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-content {
  padding: 1.5rem;
}

.product-name {
  font-size: 20px;
  font-weight: 700;
  color: #1a3a52;
  margin-bottom: 0.5rem;
}

.product-description {
  font-size: 14px;
  color: #7a8a9a;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.product-price {
  font-size: 28px;
  font-weight: 700;
  color: #FF6B35;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.product-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-actions button {
  width: 100%;
  padding: 10px;
  font-size: 14px;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.blog-card {
  background-color: #FFFFFF;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.blog-card:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
}

.blog-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-content {
  padding: 1.5rem;
}

.blog-date {
  font-size: 12px;
  color: #7a8a9a;
  margin-bottom: 0.5rem;
}

.blog-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a3a52;
  margin-bottom: 0.5rem;
}

.blog-excerpt {
  font-size: 14px;
  color: #7a8a9a;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.blog-link {
  color: #FF6B35;
  font-weight: 600;
  transition: color 0.3s ease;
}

.blog-link:hover {
  color: #e55a2b;
}

/* Contact Section */
.contact-section {
  background: linear-gradient(135deg, #1a3a52 0%, #2C3E50 100%);
  color: #FFFFFF;
  padding: 4rem 1rem;
  text-align: center;
}

.contact-content h2 {
  font-size: 36px;
  color: #FFFFFF;
  margin-bottom: 1rem;
}

.contact-content p {
  font-size: 16px;
  color: #e0e0e0;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.contact-buttons button {
  padding: 12px 24px;
  font-size: 16px;
}

/* Footer */
footer {
  background-color: #0f2438;
  color: #b0b8c0;
  padding: 2rem 1rem;
  text-align: center;
  border-top: 1px solid #1a3a52;
}

footer p {
  margin: 0.5rem 0;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h2 {
    font-size: 32px;
  }

  .section-header h2 {
    font-size: 24px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .contact-buttons {
    flex-direction: column;
  }

  .contact-buttons button {
    width: 100%;
  }

  .header-buttons {
    gap: 0.25rem;
  }

  .header-buttons button {
    padding: 6px 12px;
    font-size: 12px;
  }
}
