/* Individual Club Page Styles */

/* Global Background Fix */
body {
    background-color: var(--light-gray);
}

.container {
    background-color: transparent;
}

/* Club Header */
.club-header {
    position: relative;
    margin-bottom: 32px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 0 0 var(--radius-large) var(--radius-large);
    overflow: hidden;
}

.club-banner-container {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius-large);
}

.club-banner-large {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    filter: contrast(1.05) brightness(1.05);
}

.club-banner-large:hover {
    transform: scale(1.02);
}

.club-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 100%);
    pointer-events: none;
}

.club-header-content {
    position: relative;
    z-index: 2;
    margin-top: -40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    padding: 0 20px 20px 20px;
    background: var(--white);
    border-radius: var(--radius-large);
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    margin-left: 20px;
    margin-right: 20px;
}

.club-profile-section {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex: 1;
}

.club-profile-large {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 3px solid var(--white);
    object-fit: cover;
    background: var(--medium-gray);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 15px;
}

.club-profile-large:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}

.club-basic-info {
    flex: 1;
    margin-top: 20px;
}

.club-basic-info h1 {
    font-size: 28px;
    color: var(--primary-black);
    margin-bottom: 16px;
    font-weight: 600;
}

.club-basic-info p {
    font-size: 16px;
    color: var(--dark-gray);
    margin-bottom: 20px;
    line-height: 1.5;
}

.club-stats-row {
    display: flex;
    gap: 32px;
    margin-bottom: 24px;
}

.club-stat {
    text-align: center;
}

.club-stat-horizontal {
    display: flex;
    align-items: center;
    gap: 6px;
}

.club-stat-horizontal .stat-number {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-black);
}

.club-stat-horizontal .stat-label {
    font-size: 14px;
    color: var(--dark-gray);
}

/* Follow Button Styles */
.club-follow-section {
    width: 100%;
    display: flex;
    justify-content: center;
}


.stat-number {
    display: block;
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-black);
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    color: var(--dark-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Club Actions */
.club-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    padding-bottom: 8px;
    background: var(--white);
}

.club-social-links {
    display: flex;
    gap: 12px;
}

.social-link-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    color: var(--dark-gray);
    text-decoration: none;
    font-size: 18px;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-gray);
}

.social-link-large:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.social-link-large.instagram:hover {
    background: #E4405F;
    color: var(--white);
    border-color: #E4405F;
}

.social-link-large.twitter:hover {
    background: #1DA1F2;
    color: var(--white);
    border-color: #1DA1F2;
}

.social-link-large.website:hover {
    background: #4CAF50;
    color: var(--white);
    border-color: #4CAF50;
}

/* Club Claim Button */
.club-claim-section {
    width: 100%;
    display: flex;
    justify-content: center;
}

.btn-claim {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-small);
    color: #000000;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    min-width: 150px;
}

.btn-claim:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Admin Controls */
.admin-club-controls, .club-owner-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-club-controls button, .club-owner-controls button {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: var(--radius-small);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Claim Modal Styles */
.claim-info {
    text-align: center;
    margin-bottom: 24px;
}

.claim-info h3 {
    color: var(--primary-black);
    margin-bottom: 12px;
    font-size: 20px;
}

.claim-info p {
    color: var(--dark-gray);
    line-height: 1.5;
}

.claim-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}

#other-position-group {
    margin-top: 16px;
}

/* Club Navigation */
.club-nav {
    background: var(--white);
    border-bottom: 1px solid var(--border-gray);
    margin-bottom: 32px;
    position: sticky;
    top: 64px;
    z-index: 10;
}

.club-nav-links {
    display: flex;
    gap: 32px;
    padding: 0;
    margin: 0;
    border: none;
    background: none;
}

.club-nav-link {
    background: none;
    border: none;
    padding: 16px 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--dark-gray);
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease;
}

.club-nav-link:hover {
    color: var(--primary-black);
}

.club-nav-link.active {
    color: var(--primary-black);
}

.club-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-black);
}

/* Club Body */
.club-body {
    margin-bottom: 40px;
}

/* Posts */
.posts-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.post-card {
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-medium);
    padding: 24px;
    transition: box-shadow 0.2s ease;
}

.post-card:hover {
    box-shadow: var(--shadow-light);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.post-title {
    font-size: 18px;
    font-weight: 500;
    color: var(--primary-black);
    margin-bottom: 4px;
    line-height: 1.3;
}

.post-meta {
    font-size: 13px;
    color: var(--dark-gray);
}

.post-author {
    font-weight: 500;
    color: var(--secondary-black);
}

.post-date {
    margin-left: 8px;
}

.post-content {
    color: var(--secondary-black);
    line-height: 1.6;
    margin-bottom: 16px;
}

.post-actions {
    display: flex;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-gray);
}

.post-action {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--dark-gray);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-small);
    transition: all 0.2s ease;
}

.post-action:hover {
    background: var(--light-gray);
    color: var(--primary-black);
}

/* Vote button styling */
.vote-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
}

.vote-count {
    font-weight: 600;
    color: var(--primary-black);
    min-width: 20px;
    text-align: center;
}

.vote-btn.voted {
    background: var(--primary-black);
    color: var(--white);
}

.vote-btn.voted .vote-count {
    color: var(--white);
}

.vote-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.vote-btn:disabled:hover {
    background: var(--primary-black);
    color: var(--white);
}

/* Helpful/Not Helpful specific styling */
.vote-btn[data-vote="helpful"]:hover {
    background: #22c55e;
    color: var(--white);
}

.vote-btn[data-vote="helpful"]:hover .vote-count {
    color: var(--white);
}

.vote-btn[data-vote="not-helpful"]:hover {
    background: #ef4444;
    color: var(--white);
}

.vote-btn[data-vote="not-helpful"]:hover .vote-count {
    color: var(--white);
}

.vote-btn[data-vote="helpful"].voted {
    background: #22c55e;
}

.vote-btn[data-vote="not-helpful"].voted {
    background: #ef4444;
}

/* About Content */
.about-content {
    max-width: 800px;
}

.about-content h2 {
    font-size: 24px;
    color: var(--primary-black);
    margin-bottom: 20px;
    font-weight: 500;
}

.about-description {
    color: var(--secondary-black);
    line-height: 1.6;
    margin-bottom: 32px;
    font-size: 16px;
}

.contact-info {
    background: var(--light-gray);
    padding: 24px;
    border-radius: var(--radius-medium);
}

.contact-info h3 {
    font-size: 18px;
    color: var(--primary-black);
    margin-bottom: 16px;
    font-weight: 500;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    width: 20px;
    text-align: center;
    color: var(--dark-gray);
}

.contact-link {
    color: var(--primary-black);
    text-decoration: none;
}

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

/* Members Content */
.members-content {
    text-align: center;
    padding: 60px 20px;
    color: var(--dark-gray);
}

/* Empty States */
.empty-posts {
    text-align: center;
    padding: 60px 20px;
    color: var(--dark-gray);
}

.empty-posts .empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.7;
}

.empty-posts h3 {
    color: var(--primary-black);
    margin-bottom: 8px;
    font-size: 18px;
}

/* Error State */
.error-state {
    padding: 80px 0;
    text-align: center;
}

.error-content h1 {
    font-size: 32px;
    color: var(--primary-black);
    margin-bottom: 16px;
}

.error-content p {
    color: var(--dark-gray);
    margin-bottom: 24px;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .club-banner-container {
        height: 200px;
    }
    
    .club-header-content {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        margin-top: -40px;
    }
    
    .club-profile-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }
    
    .club-profile-large {
        width: 100px;
        height: 100px;
    }
    
    .club-basic-info h1 {
        font-size: 24px;
    }
    
    .club-actions {
        align-items: center;
    }
    
    .club-nav-links {
        gap: 24px;
        justify-content: center;
    }
    
    .admin-club-controls {
        justify-content: center;
        width: 100%;
    }
    
    .admin-club-controls button {
        flex: 1;
        max-width: 120px;
    }

    /* Fix club actions on tablet */
    .club-actions {
        width: 100%;
        align-items: center;
        justify-content: center;
    }

    #club-owner-controls {
        width: 100%;
        flex-direction: column;
        gap: 12px;
    }

    #club-owner-controls button {
        width: 100%;
        max-width: 300px;
    }

    .btn-follow,
    .btn-unfollow,
    .btn-claim {
        width: 100%;
        max-width: 300px;
    }

    /* Fix post actions on tablet */
    .post-actions {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .club-banner-container {
        height: 180px;
    }

    .club-profile-large {
        width: 80px;
        height: 80px;
    }

    .club-basic-info h1 {
        font-size: 20px;
    }

    .club-stats-row {
        gap: 16px;
    }

    .stat-number {
        font-size: 18px;
    }
    
    .club-nav-links {
        gap: 16px;
        overflow-x: auto;
        padding: 0 16px;
    }
    
    .club-nav-link {
        white-space: nowrap;
        min-width: max-content;
    }
    
    .post-card {
        padding: 16px;
    }
    
    .post-title {
        font-size: 16px;
    }
    
    .contact-info {
        padding: 16px;
    }

    /* Fix club action buttons on mobile */
    .club-actions {
        width: 100%;
        align-items: center;
        justify-content: center;
        padding: 12px 0;
    }

    .club-social-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    #club-follow-section {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    #club-owner-controls {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    #club-owner-controls button {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .btn-follow,
    .btn-unfollow,
    .btn-claim {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    /* Fix post actions overflow on mobile */
    .post-actions {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: flex-start;
    }

    .post-action {
        font-size: 12px;
        padding: 6px 10px;
        white-space: nowrap;
    }

    .vote-btn {
        font-size: 12px;
        padding: 6px 10px;
    }

    .btn-delete-post {
        font-size: 12px;
        padding: 6px 12px;
    }

    /* Ensure post content doesn't overflow */
    .post-card {
        overflow-x: hidden;
    }

    .post-content {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

/* Authentication Modal Styles */
.auth-message {
    text-align: center;
    padding: 20px;
}

.auth-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.auth-message h3 {
    color: var(--primary-black);
    margin-bottom: 12px;
    font-size: 20px;
}

.auth-message p {
    color: var(--dark-gray);
    margin-bottom: 24px;
    line-height: 1.5;
}

.auth-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.google-auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 24px;
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-small);
    background-color: var(--white);
    color: var(--secondary-black);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    max-width: 300px;
}

.google-auth-btn:hover {
    background-color: var(--light-gray);
    border-color: var(--secondary-black);
}

.auth-note {
    font-size: 13px;
    color: var(--dark-gray);
    margin: 0;
    text-align: center;
    max-width: 280px;
}

/* Follow Button Styles */
.btn-follow, .btn-following {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-small);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 150px;
}

.btn-follow {
    background-color: #000000 !important;
    color: var(--white) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.btn-follow:hover {
    background-color: #333333 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.btn-following {
    background-color: #000000 !important;
    color: var(--white) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-following:hover {
    background-color: #dc2626 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* Delete Post Button */
.delete-post-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-small);
    transition: all 0.2s ease;
    opacity: 0.6;
}

.delete-post-btn:hover {
    background-color: rgba(220, 38, 38, 0.1);
    opacity: 1;
}

.delete-post-btn span {
    font-size: 18px;
}

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

/* Social Link Icons in Header */
.social-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.2s ease;
    margin: 0 4px;
}

.social-link-icon:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.social-icon-img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.club-social-links {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

/* Contact Item Icon Styling */
.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.contact-icon img {
    border-radius: 4px;
}

/* Club Actions Section */
.club-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-end;
    margin-top: 20px;
    background: var(--white);
}

.club-follow-section,
.club-claim-section,
.admin-club-controls,
.club-owner-controls {
    background: var(--white);
}

/* Social Links Styling */
.club-social-links {
    display: flex;
    gap: 12px;
    align-items: center;
}

.social-link-large {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-black);
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.2s ease;
}

.social-link-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.social-link-large.website {
    background: #4285f4;
}

.social-link-large.instagram {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
}

.social-link-large.twitter {
    background: #1da1f2;
}

/* Manage Members Modal */
.manage-members-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.add-member-section,
.current-members-section {
    background: var(--light-gray);
    padding: 20px;
    border-radius: var(--radius-medium);
}

.add-member-section h3,
.current-members-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--primary-black);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.member-limit-note {
    font-size: 13px;
    color: var(--dark-gray);
    margin-top: 8px;
    margin-bottom: 0;
}

.members-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.member-item {
    background: var(--white);
    padding: 16px;
    border-radius: var(--radius-small);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-gray);
}

.member-info {
    flex: 1;
}

.member-email {
    font-weight: 500;
    color: var(--primary-black);
    margin-bottom: 4px;
}

.member-position {
    font-size: 13px;
    color: var(--dark-gray);
}

.member-permissions {
    font-size: 12px;
    color: var(--dark-gray);
    margin-top: 4px;
}

.member-actions {
    display: flex;
    gap: 8px;
}

.btn-remove-member {
    background: #ef4444;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: var(--radius-small);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-remove-member:hover {
    background: #dc2626;
}

/* Members Table */
.members-table-container {
    overflow-x: auto;
    margin-top: 16px;
}

.members-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.members-table th {
    background: #4285f4;
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: 500;
    font-size: 13px;
}

.members-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}

.members-table tr:hover {
    background: #f8f9fa;
}

.role-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.role-badge.manager {
    background: #34a853;
    color: white;
}

.role-badge.member {
    background: #fbbc04;
    color: #333;
}

.permission-badge {
    display: inline-block;
    padding: 3px 8px;
    margin: 2px;
    border-radius: 10px;
    font-size: 11px;
    background: #e8f0fe;
    color: #1967d2;
}

.action-buttons-inline {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.btn-edit-inline, .btn-permissions-inline, .btn-team-profile-inline, .btn-remove-inline {
    padding: 6px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

.btn-edit-inline {
    background: #4285f4;
    color: white;
}

.btn-edit-inline:hover {
    background: #3367d6;
}

.btn-permissions-inline {
    background: #fbbc04;
    color: #333;
}

.btn-permissions-inline:hover {
    background: #f9ab00;
}

.btn-team-profile-inline {
    background: #10a37f;
    color: white;
}

.btn-team-profile-inline:hover {
    background: #0e8f6f;
}

.btn-remove-inline {
    background: #ea4335;
    color: white;
}

.btn-remove-inline:hover {
    background: #d33426;
}

.permissions-section {
    margin-top: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

.permissions-section .checkbox-label {
    justify-content: flex-start !important;
    margin-bottom: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    order: 2;
}

.empty-members {
    text-align: center;
    padding: 32px;
    color: var(--dark-gray);
}

/* Events Section Styles */
.events-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.events-header h2 {
    margin: 0;
    font-size: 24px;
    color: var(--text-color);
}

.events-calendar {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.events-container {
    display: grid;
    gap: 20px;
}

.event-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.event-banner {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.event-content {
    padding: 20px;
}

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

.event-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 8px 0;
}

.event-countdown {
    background: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.event-countdown.past {
    background: var(--dark-gray);
}

.event-description {
    color: var(--dark-gray);
    margin-bottom: 16px;
    line-height: 1.6;
}

.event-meta {
    display: grid;
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.event-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dark-gray);
    font-size: 14px;
}

.event-meta-item svg,
.event-meta-item span:first-child {
    width: 20px;
    flex-shrink: 0;
}

.event-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.event-actions button {
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.btn-delete-event {
    background: #dc3545;
    color: white;
}

.btn-delete-event:hover {
    background: #c82333;
}

.empty-events {
    text-align: center;
    padding: 48px 20px;
    color: var(--dark-gray);
}

.empty-events .empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.empty-events h3 {
    margin: 0 0 8px 0;
    color: var(--text-color);
}

.event-disclaimer {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.event-disclaimer p {
    margin: 0;
    color: #856404;
    font-size: 14px;
    line-height: 1.5;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .member-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .member-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .events-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .event-header {
        flex-direction: column;
        gap: 8px;
    }

    .event-countdown {
        align-self: flex-start;
    }
}

/* Our Team / Members Section */
/* Team Category Sections */
.team-category-section {
    margin-bottom: 40px;
}

.team-category-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 3px solid #4285f4;
    display: inline-block;
}

.team-members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.team-member-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.team-member-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    border-color: #4285f4;
}

.team-member-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 600;
    color: white;
    margin: 0 auto 16px;
}

.team-member-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 4px;
}

.team-member-role {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-bottom: 8px;
}

.team-member-info {
    font-size: 13px;
    color: #888;
    text-align: center;
    margin-bottom: 4px;
}

.team-member-major {
    font-weight: 500;
    color: #4285f4;
}

/* Team Member Detail Modal */
.team-member-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.team-member-modal-content {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.team-member-modal-header {
    padding: 32px 32px 24px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.modal-close-btn:hover {
    background: #f5f5f5;
    color: #333;
}

.team-member-modal-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 600;
    color: white;
    margin: 0 auto 16px;
}

.team-member-modal-name {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.team-member-modal-role {
    font-size: 16px;
    color: #666;
    margin-bottom: 4px;
}

.team-member-modal-meta {
    font-size: 14px;
    color: #888;
}

.team-member-modal-body {
    padding: 32px;
}

.team-modal-section {
    margin-bottom: 24px;
}

.team-modal-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.team-modal-section-content {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}

.volunteer-role-item {
    padding: 8px 12px;
    background: #f8f9fa;
    border-left: 3px solid #4285f4;
    margin-bottom: 8px;
    border-radius: 4px;
    font-size: 14px;
}

.join-date {
    font-size: 13px;
    color: #888;
    font-style: italic;
}

/* Social Contact Buttons */
.social-contact-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.social-btn img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.social-btn.linkedin {
    background: #0077b5;
    color: white;
}

.social-btn.linkedin:hover {
    background: #006399;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,119,181,0.3);
}

.social-btn.email {
    background: #ea4335;
    color: white;
}

.social-btn.email:hover {
    background: #d33426;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(234,67,53,0.3);
}

.social-btn.phone {
    background: #34a853;
    color: white;
}

.social-btn.phone:hover {
    background: #2d8e47;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52,168,83,0.3);
}

@media (max-width: 768px) {
    .team-members-grid {
        grid-template-columns: 1fr;
    }

    .team-member-modal-content {
        margin: 0;
        border-radius: 16px 16px 0 0;
        max-height: 95vh;
    }

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

    .social-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Club Rating Widget Styles */
.club-rating-section {
    margin-bottom: 24px;
}

.club-rating-widget {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-medium);
    padding: 20px;
    box-shadow: var(--shadow-medium);
    position: sticky;
    top: 80px;
}

.rating-header {
    margin-bottom: 16px;
    text-align: center;
}

.rating-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Current Rating Display (Speedometer style) */
.current-rating-display {
    margin-bottom: 16px;
    text-align: center;
    padding: 16px;
    background: var(--light-gray);
    border-radius: var(--radius-small);
}

.current-rating-number {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
}

.current-rating-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rating-bar-container {
    margin-top: 12px;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    transition: width 0.3s ease, background-color 0.3s ease;
    border-radius: 4px;
}

.rating-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 12px;
}

.rating-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--background);
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rating-btn:hover {
    transform: scale(1.1);
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

/* Rating button hover colors based on rating value */
.rating-btn[data-rating="1"]:hover {
    border-color: #d32f2f;
    background: #d32f2f;
}

.rating-btn[data-rating="2"]:hover {
    border-color: #f44336;
    background: #f44336;
}

.rating-btn[data-rating="3"]:hover {
    border-color: #ff9800;
    background: #ff9800;
}

.rating-btn[data-rating="4"]:hover {
    border-color: #8bc34a;
    background: #8bc34a;
}

.rating-btn[data-rating="5"]:hover {
    border-color: #4caf50;
    background: #4caf50;
}

.rating-btn.selected {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
    transform: scale(1.15);
}

.rating-btn.selected-1 { background: #d32f2f; border-color: #d32f2f; }
.rating-btn.selected-2 { background: #f44336; border-color: #f44336; }
.rating-btn.selected-3 { background: #ff9800; border-color: #ff9800; }
.rating-btn.selected-4 { background: #8bc34a; border-color: #8bc34a; }
.rating-btn.selected-5 { background: #4caf50; border-color: #4caf50; }

.rating-info {
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
}

.rating-count {
    font-weight: 500;
}

.club-rating-display {
    display: flex;
    align-items: center;
    gap: 6px;
}

.club-rating-display .stat-number {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 18px;
}

.club-rating-display .stat-label {
    font-size: 14px;
    color: var(--dark-gray);
}

/* Club Body Layout with Rating on Right */
@media (min-width: 1024px) {
    .club-body {
        display: grid;
        grid-template-columns: 1fr 280px;
        gap: 24px;
        align-items: start;
    }

    .club-rating-section {
        order: 2;
        grid-column: 2;
        grid-row: 1 / span 10;
    }

    .club-tab {
        order: 1;
        grid-column: 1;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .club-body {
        display: grid;
        grid-template-columns: 1fr 260px;
        gap: 20px;
        align-items: start;
    }

    .club-rating-section {
        order: 2;
        grid-column: 2;
        grid-row: 1 / span 10;
    }

    .club-tab {
        order: 1;
        grid-column: 1;
    }
}

@media (max-width: 767px) {
    .club-body {
        display: flex;
        flex-direction: column;
    }

    .club-rating-section {
        order: 1;
        margin-bottom: 24px;
    }

    .club-tab {
        order: 2;
    }

    .rating-buttons {
        gap: 6px;
    }

    .rating-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .club-rating-widget {
        position: static;
    }
}