/**
 * MyOMR Coworking Spaces Portal - Styles
 * 
 * @package MyOMR Coworking Spaces
 * @version 1.0.0
 */

/* CSS Variables */
:root {
  --myomr-green: #008552;
  --myomr-light-green: #22c55e;
  --myomr-dark-green: #14532d;
  --myomr-gray: #6b7280;
  --myomr-light-gray: #f3f4f6;
  --myomr-border: #e5e7eb;
  --myomr-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1),
    0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --myomr-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Base Styles */
body {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  line-height: 1.6;
  color: #374151;
}

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--myomr-green);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
}

.skip-link:focus {
  top: 6px;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(
    135deg,
    var(--myomr-green) 0%,
    var(--myomr-dark-green) 100%
  );
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.stats-box {
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Search Form */
.search-form .form-control,
.search-form .form-select {
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.search-form .form-control:focus,
.search-form .form-select:focus {
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
  background-color: rgba(255, 255, 255, 0.95);
}

.search-form .btn {
  transition: all 0.3s ease;
}

.search-form .btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--myomr-shadow-lg);
}

/* Space Cards */
.space-card {
  transition: all 0.3s ease;
  border: 1px solid var(--myomr-border);
  border-radius: 12px;
  overflow: hidden;
}

.space-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--myomr-shadow-lg);
  border-color: var(--myomr-green);
}

.space-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.space-card-header {
  padding: 1rem;
  border-bottom: 1px solid var(--myomr-border);
}

.space-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--myomr-dark-green);
}

.space-card-location {
  color: var(--myomr-gray);
  font-size: 0.9rem;
}

.space-card-body {
  padding: 1rem;
}

.space-card-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.amenity-badge {
  background: var(--myomr-light-gray);
  color: var(--myomr-gray);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
}

.space-card-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--myomr-green);
  margin-bottom: 0.5rem;
}

.space-card-footer {
  padding: 1rem;
  border-top: 1px solid var(--myomr-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Filters Section */
.filters-section {
  background: white;
  border-bottom: 1px solid var(--myomr-border);
}

.filter-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.filter-checkbox label {
  margin-left: 0.5rem;
  font-weight: 500;
}

/* Badges */
.badge-modern {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
}

.badge-modern-primary {
  background: #e0f2fe;
  color: #0369a1;
}

.badge-modern-success {
  background: #dcfce7;
  color: #166534;
}

.badge-verified {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* Featured Space Highlight */
.space-featured {
  border: 2px solid var(--myomr-green);
  position: relative;
}

.space-featured::before {
  content: "Featured";
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #22c55e 0%, #008552 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 10;
  box-shadow: var(--myomr-shadow);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-modern-title {
    font-size: 2rem;
  }
  
  .space-card {
    margin-bottom: 1.5rem;
  }
  
  .filter-group {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Modern Page Base */
.modern-page {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: linear-gradient(135deg, #f0fdf4 0%, #e0f2fe 100%);
  min-height: 100vh;
  background-attachment: fixed;
}

/* Modern Hero Section */
.hero-modern {
  background: linear-gradient(135deg, #008552 0%, #00b86b 50%, #22c55e 100%);
  position: relative;
  padding: 3.5rem 0;
  overflow: hidden;
}

.hero-modern::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.1"><path d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/></g></g></svg>');
  opacity: 0.3;
}

.hero-modern .container {
  position: relative;
  z-index: 2;
}

.hero-modern h1,
.hero-modern .display-4,
.hero-modern-title {
  font-weight: 800;
  font-size: 2.5rem;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  color: white;
  margin-bottom: 1rem;
}

.hero-modern-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 400;
  margin-bottom: 0;
}

/* Modern Card Component */
.card-modern {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 133, 82, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
}

.card-modern::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(135deg, #008552 0%, #00b86b 50%, #22c55e 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-modern:hover::before {
  transform: scaleX(1);
}

.card-modern:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 133, 82, 0.2);
}

/* Forms */
.form-group-modern {
  margin-bottom: 1.5rem;
}

.form-label-modern {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--myomr-dark-green);
  font-size: 0.95rem;
}

.required-field::after {
  content: " *";
  color: #ef4444;
}

.form-control-modern {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--myomr-border);
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

.form-control-modern:focus {
  outline: none;
  border-color: var(--myomr-green);
  box-shadow: 0 0 0 3px rgba(0, 133, 82, 0.1);
}

.help-text-modern {
  font-size: 0.875rem;
  color: var(--myomr-gray);
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Buttons */
.btn-modern {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-modern-primary {
  background: linear-gradient(135deg, #008552 0%, #00b86b 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 133, 82, 0.3);
}

.btn-modern-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 133, 82, 0.4);
}

/* Icons */
.form-section-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #22c55e 0%, #008552 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  margin-bottom: 1rem;
  box-shadow: 0 8px 24px rgba(0, 133, 82, 0.3);
}

