/*
Theme Name: Stiftelsen Theme
Description: Custom theme for Brita och Sven Rahmns Stiftelse - Swedish Foundation Website
Version: 1.0
Author: Custom Development
*/

/* Swedish Blue Color Scheme */
:root {
  --swedish-blue: #006aa7;
  --swedish-yellow: #fecc02;
  --light-gray: #f8f9fa;
  --dark-gray: #343a40;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
.site-header {
  background: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.site-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--swedish-blue);
  text-decoration: none;
}

.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.main-navigation a {
  text-decoration: none;
  color: #666;
  font-weight: 500;
  transition: color 0.3s;
}

.main-navigation a:hover {
  color: var(--swedish-blue);
}

/* Ensure buttons in navigation keep their proper colors */
.main-navigation a.btn-primary,
.main-navigation a.btn-primary:hover {
  color: white !important;
}

/* Button Styles */
.btn-primary {
  background: var(--swedish-blue);
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.375rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-primary:hover {
  background: #005a94;
  color: white;
}

.btn-secondary {
  background: transparent;
  color: var(--swedish-blue);
  border: 2px solid var(--swedish-blue);
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  transition: all 0.3s;
}

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

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 4rem 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Hero Section with Background Image */
.hero-with-background {
  position: relative;
  min-height: 550px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  padding: 4rem 0;
}

.hero-content-box {
  background: rgba(255, 255, 255, 0.95);
  padding: 3rem;
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  font-size: 3rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 1.5rem;
}

.hero-section-with-bg .hero-title {
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-description {
  font-size: 1.25rem;
  color: #666;
  max-width: 800px;
  margin: 0 auto 2rem;
}

.hero-section-with-bg .hero-description {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

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

.hero-section-with-bg .btn-secondary {
  background: white;
  color: var(--swedish-blue);
  border-color: white;
}

.hero-section-with-bg .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--swedish-blue);
}

/* Responsive adjustments for hero */
@media (max-width: 768px) {
  .hero-with-background {
    min-height: 400px;
    padding: 2rem 0;
  }
  
  .hero-content-box {
    padding: 2rem 1.5rem;
    margin: 0 1rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-description {
    font-size: 1.1rem;
  }
}

/* Image Banner Section */
.image-banner {
  margin: 3rem auto;
  position: relative;
  max-width: 1200px;
  padding: 0 20px;
}

.banner-image {
  width: 100% !important;
  height: 350px !important;
  object-fit: cover !important;
  border-radius: 0.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  display: block !important;
}

.image-caption {
  text-align: center;
  margin-top: 1rem;
  padding: 0 1rem;
}

.image-caption p {
  font-style: italic;
  color: #666;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .banner-image {
    height: 250px;
    border-radius: 0.25rem;
  }
}

/* Card Styles */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.card {
  background: white;
  border-radius: 0.5rem;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.card-icon {
  color: var(--swedish-blue);
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #333;
}

.card-description {
  color: #666;
  margin-bottom: 1.5rem;
}

/* Form Styles */
.form-container {
  max-width: 600px;
  margin: 2rem auto;
  background: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

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

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

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e9ecef;
  border-radius: 0.375rem;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--swedish-blue);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* Dashboard Styles */
.dashboard-container {
  padding: 2rem 0;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e9ecef;
}

.dashboard-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #e9ecef;
}

.dashboard-tab {
  padding: 0.75rem 1.5rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-weight: 500;
  color: #666;
  transition: all 0.3s;
}

.dashboard-tab.active {
  color: var(--swedish-blue);
  border-bottom-color: var(--swedish-blue);
}

.applications-grid {
  display: grid;
  gap: 1rem;
}

.application-card {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 0.5rem;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s;
}

.application-card:hover {
  border-color: var(--swedish-blue);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.application-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.application-title {
  font-weight: bold;
  color: #333;
  margin-bottom: 0.25rem;
}

.application-meta {
  font-size: 0.875rem;
  color: #666;
}

.status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Status: Ej behandlade - Yellow (Warning/Pending) */
.status-inkomna-ej-behandlade {
  background: #fff3cd;
  color: #856404;
}

/* Status: Bordlagda - Blue (Informational) */
.status-bordlagd {
  background: #cfe2ff;
  color: #084298;
}

/* Status: Tillstyrkda (ej utbetalda) - Light Green (Progress) */
.status-tillstyrkd-ej-utbetald {
  background: #d1e7dd;
  color: #0f5132;
}

/* Status: Godkända pågående (legacy) - Light Green (Progress) */
.status-godkand-pagaende {
  background: #d1e7dd;
  color: #0f5132;
}

/* Status: Godkända utbetalda - Dark Green (Success/Complete) */
.status-godkand-utbetald {
  background: #d4edda;
  color: #155724;
}

/* Status: Avslagna - Red (Rejected) */
.status-avslagen {
  background: #f8d7da;
  color: #721c24;
}

/* Alert Styles */
.alert {
  padding: 1rem;
  border-radius: 0.375rem;
  margin-bottom: 1rem;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.alert-info {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

/* Footer Styles */
.site-footer {
  background: #343a40;
  color: white;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

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

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

.footer-section a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #495057;
  color: #ccc;
}

/* Mobile Navigation */
.mobile-navigation {
  display: none;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  padding: 0.5rem;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background-color: var(--swedish-blue);
  transition: all 0.3s;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-content {
    flex-direction: row;
    gap: 1rem;
  }
  
  .main-navigation {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .mobile-navigation {
    display: none;
    width: 100%;
    padding: 1rem 0;
  }
  
  .mobile-navigation.active {
    display: block;
  }
  
  .mobile-navigation ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    list-style: none;
  }
  
  .mobile-navigation a {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    padding: 0.5rem 0;
    display: block;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .dashboard-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  
  .dashboard-tabs {
    flex-wrap: wrap;
  }
}

/* Loading Spinner */
.loading-spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--swedish-blue);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }

