/* ============================================================
   Base / Reset
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: linear-gradient(135deg, #05070b 0%, #11151b 45%, #25110d 100%);
    color: #f2f2f2;
    min-height: 100vh;
}

/* ============================================================
   Navbar
   ============================================================ */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #333;
    padding: 0;
    position: relative;
}

/* Left section */
.navbar-left {
    display: flex;
    align-items: center;
}

/* Center section */
.navbar-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* Right section */
.navbar-right {
    display: flex;
    align-items: center;
    position: relative;
}

.navbar a {
    float: none;
    display: inline-block;
    font-size: 16px;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

.navbar a:hover {
    background-color: #43a047;
    color: black;
}

.navbar .active {
    background: linear-gradient(135deg, #327b5e, #3aa077);
    border: none;
    border-radius: 10px;
    padding: 10px 18px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 10px 18px rgba(217, 63, 16, 0.24);
    background-color: #2a6d2c;
    color: white;
}



/* Navbar brand (used on auth pages) */
.navbar-brand {
    font-size: 18px;
    font-weight: bold;
    color: white;
    text-decoration: none;
    padding: 14px 20px;
    letter-spacing: 0.5px;
}

.navbar-brand:hover {
    color: #ddd;
}

/* Hamburger button */
.hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.hamburger-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: white;
    border-radius: 2px;
    transition: background-color 0.2s;
}

.hamburger-btn:hover span {
    background-color: #ddd;
}

/* Dropdown menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: #444;
    min-width: 160px;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border-radius: 0 0 4px 4px;
}

.dropdown-menu a {
    display: block;
    float: none;
    padding: 12px 16px;
    text-align: left;
    white-space: nowrap;
    color: rgb(80, 74, 74);

}

.dropdown-menu a:hover {
    background-color: #555;
    color: white;
}

.dropdown.open .dropdown-menu {
    display: block;
}

.dropdown-user {
    display: block;
    padding: 10px 16px 6px;
    color: #34b83f;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
    border-bottom: 1px solid #555;
    margin-bottom: 4px;
}

/* ============================================================
   Page Content
   ============================================================ */
.page-content {
    padding: 24px;
}

.landing-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-section {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    padding: 40px;
    border-radius: 24px;
    background: linear-gradient(135deg, #0f1218 0%, #1c252f 45%, #4a1710 100%);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

.hero-copy h1 {
    text-align: left;
    color: white;
    font-size: 2.6rem;
    margin: 14px 0 12px;
    line-height: 1.1;
}

.hero-copy p {
    color: #d7d7d7;
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 640px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffb29a;
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0 20px;
}

.btn {
  display: inline-block !important;
  background-color: #222222 !important;
  color: #ffffff !important;
  padding: 10px 20px !important;
  border: 2px solid #222222 !important;
  border-radius: 4px !important;
  text-decoration: none !important;
  font-size: 14px !important;
  line-height: 1 !important;
  cursor: pointer !important;
}

.btn-primary {
    background: linear-gradient(135deg, #ff7a1a, #d93f10);
    border: none;
    color: white;
    padding: 10px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 10px 18px rgba(217, 63, 16, 0.24);
}

.btn-outline {
    background: transparent;
    border: 2px solid transparent;
    border-image: linear-gradient(135deg, #ff7a1a, #d93f10) 1;
    color: #d93f10;
    padding: 8px 16px; /* Reduced by 2px to account for the 2px border */
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: none;
    transition: all 0.3s ease-in-out;
}

.btn-outline:hover {
    background: linear-gradient(135deg, #ff7a1a, #d93f10);
    color: white;
    box-shadow: 0 10px 18px rgba(217, 63, 16, 0.24);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.hero-stats div {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    padding: 12px 14px;
}

.hero-stats strong {
    display: block;
    font-size: 1.1rem;
    color: white;
}

.hero-stats span {
    color: #c4c4c4;
    font-size: 0.85rem;
}

.hero-card {
    background: rgba(4, 8, 12, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 22px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-card-top {
    color: #ffb29a;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: 10px;
}

.hero-card-body h3 {
    margin: 0 0 8px;
    color: white;
}

.hero-card-body p,
.hero-list {
    color: #d9d9d9;
    line-height: 1.6;
}

.hero-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero-list li {
    display: flex;
    gap: 8px;
    align-items: center;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.feature-card,
.proof-card,
.dashboard-card {
    background: rgba(255, 255, 255, 0.95);
    color: #1d232b;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff7a1a, #d93f10);
    color: white;
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.feature-card h3,
.proof-card h3,
.dashboard-card h3 {
    margin: 0 0 8px;
}

.feature-card p,
.proof-card p,
.dashboard-card p,
.dashboard-card span {
    color: #4b5563;
    line-height: 1.6;
}

.social-proof {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 18px;
}

.large-card {
    min-height: 230px;
}

.proof-card ul {
    padding-left: 18px;
    color: #4b5563;
    line-height: 1.7;
}

.dashboard-shell {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.dashboard-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.95);
    color: #1d232b;
    padding: 24px 26px;
    border-radius: 20px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
}

.dashboard-hero h1 {
    text-align: left;
    margin: 10px 0 8px;
    color: #1d232b;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.club-page,
.club-detail-page {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.club-hero,
.club-detail-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    background: rgba(255, 255, 255, 0.95);
    color: #1d232b;
    padding: 24px 26px;
    border-radius: 20px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
}

.club-hero h1,
.club-detail-hero h1 {
    text-align: left;
    margin: 10px 0 8px;
    color: #1d232b;
}

.club-grid,
.club-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.club-card,
.detail-card {
    background: rgba(255, 255, 255, 0.95);
    color: #1d232b;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
}

.club-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    gap: 8px;
}

.club-badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: #ffe2d5;
    color: #a74012;
    font-size: 0.78rem;
    font-weight: 700;
}

.club-members {
    color: #6b7280;
    font-size: 0.9rem;
}

.text-link {
    color: #d93f10;
    font-weight: 700;
    text-decoration: none;
}

.muted {
    color: #6b7280;
}

.club-detail-meta {
    display: flex;
    gap: 12px;
}

.club-detail-meta div {
    min-width: 110px;
    padding: 10px 12px;
    border-radius: 14px;
    background: #f5f5f5;
}

.club-detail-meta strong {
    display: block;
    color: #1d232b;
}

.club-detail-meta span {
    color: #6b7280;
    font-size: 0.9rem;
}

.detail-card ul {
    padding-left: 18px;
    color: #4b5563;
    line-height: 1.7;
}

@media (max-width: 900px) {
    .hero-section,
    .social-proof,
    .dashboard-grid,
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-hero,
    .club-hero,
    .club-detail-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-stats,
    .club-grid,
    .club-detail-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   General Container
   ============================================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #333;
    text-align: center;
    margin-bottom: 30px;
}

/* ============================================================
   Tables
   ============================================================ */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
    font-weight: bold;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #f5f5f5;
}

/* ============================================================
   Utility / Feedback
   ============================================================ */
.loading {
    text-align: center;
    color: #666;
    font-style: italic;
}

.error {
    color: #dc3545;
    background-color: #f8d7da;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
}

.refresh-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 20px;
}

.refresh-btn:hover {
    background-color: #0056b3;
}

.refresh-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.count-info {
    margin-bottom: 10px;
    color: #666;
}

/* ============================================================
   Auth Layout
   ============================================================ */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 60px 16px;
}

.auth-card {
    background: #ffffff;
    border: 1px solid #dde1e7;
    border-radius: 8px;
    padding: 36px 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.auth-card h1 {
    margin: 0 0 24px;
    font-size: 1.5rem;
    color: #222;
    text-align: center;
}

/* ============================================================
   Auth Forms
   ============================================================ */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 600;
    color: #444;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.15);
}

.club-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
}

.help-text {
    display: block;
    margin-top: 4px;
    color: #888;
    font-size: 12px;
}

.field-errors {
    list-style: none;
    padding: 0;
    margin: 5px 0 0;
    color: #c0392b;
    font-size: 13px;
}

/* Events */
.events-section {
    background: rgba(255, 255, 255, 0.95);
    color: #1d232b;
    padding: 22px;
    border-radius: 20px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
}

.events-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.events-header h2 {
    margin: 0;
}

.event-list {
    display: grid;
    gap: 12px;
}

.event-card {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 16px;
    background: #fafafa;
}

.event-card h3 {
    margin: 0 0 8px;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
    color: #6b7280;
    font-size: 0.95rem;
}

/* Social feed */
.feed-section {
    background: rgba(255, 255, 255, 0.95);
    color: #1d232b;
    padding: 22px;
    border-radius: 20px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
}

.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.feed-list {
    display: grid;
    gap: 12px;
}

.feed-card {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 16px;
    background: #fafafa;
}

.feed-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.feed-card p {
    margin: 0 0 8px;
    line-height: 1.6;
}

.feed-meta {
    color: #6b7280;
    font-size: 0.92rem;
}

/* Messages / alerts */
.messages {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
}

.messages .message {
    padding: 10px 14px;
    border-radius: 4px;
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
    margin-bottom: 8px;
    font-size: 14px;
}

.messages .message.error,
.messages .message.danger {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.messages .message.success {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

/* Non-field errors */
.non-field-errors {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.non-field-errors li {
    padding: 10px 14px;
    border-radius: 4px;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    font-size: 14px;
    margin-bottom: 6px;
}

/* Submit button */
.btn-submit {
    display: block;
    width: 100%;
    padding: 11px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.2s;
}

.btn-submit:hover {
    background-color: #43a047;
}

/* Footer link */
.auth-footer {
    margin-top: 22px;
    text-align: center;
    font-size: 14px;
    color: #666;
}

.auth-footer a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Divider */
.auth-divider {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 20px 0;
}
