/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-image: url(/assets/narodna-lyubov.jpg);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.10);
  z-index: -1;
}

/* Header Styles */
header {
  background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
  color: white;
  padding: 1.5rem 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

header h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

header nav span {
  margin-right: 1rem;
}

header nav a,
header nav form {
  display: inline-block;
}

/* Flash Messages */
.notice, .alert {
  padding: 1rem 2rem;
  margin: 0;
  text-align: center;
  font-weight: 500;
}

.notice {
  background-color: #d4edda;
  color: #155724;
  border-bottom: 2px solid #c3e6cb;
}

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

/* Main Content */
main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
}

/* Politicians Container */
.politicians-container {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.politicians-container h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #e53935;
  text-align: center;
}

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

/* Politician Card */
.politician-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  border: 2px solid #e0e0e0;
  transition: all 0.3s ease;
}

.politician-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  border-color: #e53935;
}

.politician-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.politician-card h3 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 0.5rem;
}

.politician-card .party {
  color: #e53935;
  font-weight: 600;
  margin-bottom: 1rem;
}

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

/* Vote Section */
.vote-section {
  border-top: 1px solid #e0e0e0;
  padding-top: 1rem;
}

.vote-count {
  font-size: 1rem;
  color: #333;
  margin-bottom: 1rem;
}

.voted-message {
  color: #27ae60;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.error-message {
  color: #e74c3c;
  font-weight: 500;
  margin-bottom: 0.5rem;
  padding: 0.5rem;
  background-color: #fee;
  border-radius: 4px;
}

.no-politicians {
  text-align: center;
  color: #999;
  font-size: 1.2rem;
  padding: 3rem;
}

/* Button Styles */
.btn, button[type="submit"], input[type="submit"], header nav form input[type="submit"] {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary, button[type="submit"]:not(.btn-secondary) {
  background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
  color: white;
}

.btn-primary:hover, button[type="submit"]:not(.btn-secondary):hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(229, 57, 53, 0.4);
}

.btn-secondary, header nav form input[type="submit"] {
  background-color: #e0e0e0;
  color: #333;
}

.btn-secondary:hover, header nav form input[type="submit"]:hover {
  background-color: #d0d0d0;
  transform: translateY(-2px);
}

header nav a {
  background: white;
  color: #e53935;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

header nav a:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255,255,255,0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  header h1 {
    font-size: 1.2rem;
  }

  header nav {
    flex-direction: column;
    align-items: flex-start;
  }

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

  main {
    margin: 1rem auto;
    padding: 0 1rem;
  }

  .politicians-container {
    padding: 1rem;
  }
}

/* Authentication Forms Styles */
.auth-container {
  max-width: 500px;
  margin: 3rem auto;
  padding: 0 2rem;
}

.auth-card {
  background: white;
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  margin-bottom: 1.5rem;
}

.auth-title {
  font-size: 1.75rem;
  color: #e53935;
  margin-bottom: 1.5rem;
  text-align: center;
}

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

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

.auth-form .form-control {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.auth-form .form-control:focus {
  outline: none;
  border-color: #e53935;
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

.auth-form .checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.auth-form .form-checkbox {
  width: auto;
  margin: 0;
  cursor: pointer;
}

.auth-form .checkbox-group label {
  margin: 0;
  font-weight: 500;
  cursor: pointer;
}

.auth-form .form-actions {
  margin-top: 2rem;
}

.btn-block {
  width: 100%;
  display: block;
}

.password-hint {
  display: block;
  font-size: 0.875rem;
  color: #666;
  font-style: italic;
  margin-top: 0.25rem;
}

.form-info {
  background-color: #e3f2fd;
  color: #1976d2;
  padding: 0.75rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

/* Error Messages */
.error-explanation {
  background-color: #fee;
  border: 2px solid #e74c3c;
  border-radius: 6px;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}

.error-title {
  color: #e74c3c;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.error-list {
  margin: 0;
  padding-left: 1.5rem;
  color: #c0392b;
}

.error-list li {
  margin-bottom: 0.25rem;
}

/* Auth Links */
.auth-links {
  text-align: center;
  padding: 1rem 0;
}

.auth-link {
  display: block;
  color: #e53935;
  text-decoration: none;
  margin: 0.5rem 0;
  font-weight: 500;
  transition: color 0.3s ease;
}

.auth-link:hover {
  color: #c62828;
  text-decoration: underline;
}

.btn-oauth {
  width: 100%;
  background: #1877f2;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.btn-oauth:hover {
  background: #145dbf;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(24, 119, 242, 0.4);
}

.back-link {
  display: inline-block;
  color: #e53935;
  text-decoration: none;
  margin-top: 1rem;
  font-weight: 500;
}

.back-link:hover {
  text-decoration: underline;
}

/* Danger Zone */
.danger-zone {
  border: 2px solid #e74c3c;
  background-color: #feefef;
}

.danger-title {
  color: #e74c3c;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.danger-text {
  color: #666;
  margin-bottom: 1rem;
}

.btn-danger {
  background-color: #e74c3c;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-danger:hover {
  background-color: #c0392b;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

/* Responsive Auth Forms */
@media (max-width: 768px) {
  .auth-container {
    margin: 1.5rem auto;
    padding: 0 1rem;
  }

  .auth-card {
    padding: 1.5rem;
  }

  .auth-title {
    font-size: 1.5rem;
  }
}
