/* Join Community Section */
.join-community-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.join-community-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
    animation: backgroundFloat 20s ease-in-out infinite;
}

@keyframes backgroundFloat {
    0%, 100% { 
        opacity: 0.3;
        transform: translateY(0px);
    }
    50% { 
        opacity: 0.5;
        transform: translateY(-8px);
    }
}

.join-community-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.join-community-intro {
    color: #ccc;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    font-weight: 400;
    opacity: 0.9;
}

.join-community-trigger {
    margin: 3rem 0;
}

.join-community-trigger .btn {
    min-width: 300px;
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 12px;
    background: #fff;
    color: #000;
    border: 2px solid #fff;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.join-community-trigger .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #000 0%, #333 100%);
    transition: left 0.5s ease;
    z-index: -1;
}

.join-community-trigger .btn:hover::before {
    left: 0;
}

.join-community-trigger .btn:hover {
    color: #fff;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.3);
}

.join-community-description {
    color: #aaa;
    font-size: 0.95rem;
    margin-top: 1.2rem;
    font-weight: 400;
}

/* Waitlist Perks in Dark Section */
.join-community-section .waitlist-perks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 4rem auto;
    max-width: 900px;
    width: 100%;
}

.join-community-section .perk-item {
    text-align: center;
    padding: 2rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.join-community-section .perk-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.join-community-section .perk-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1.2;
}

.join-community-section .perk-desc {
    font-size: 0.9rem;
    color: #ccc;
    font-weight: 400;
    opacity: 0.9;
}

.join-community-footer {
    color: #aaa;
    font-size: 1rem;
    font-style: italic;
    margin-top: 3rem;
    opacity: 0.8;
}

/* Tablet Responsive */
@media (max-width: 992px) {
    .join-community-section .waitlist-perks {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        max-width: 800px;
        width: 100%;
    }
    
    .join-community-section .perk-item {
        padding: 1.8rem 1.2rem;
        min-height: 140px;
    }
    
    .join-community-section .perk-title {
        font-size: 0.85rem;
        letter-spacing: 0.8px;
        line-height: 1.3;
    }
}

/* Mobile Responsive for Dark Section */
@media (max-width: 768px) {
    .join-community-section {
        padding: 4rem 1rem;
    }
    
    .join-community-intro {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .join-community-trigger .btn {
        min-width: 280px;
        padding: 1.1rem 2rem;
        font-size: 1rem;
    }
    
    .join-community-section .waitlist-perks {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 3rem 0;
        max-width: 100%;
        width: 100%;
    }
    
    .join-community-section .perk-item {
        padding: 2rem 1.5rem;
        min-height: 120px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 100%;
        box-sizing: border-box;
    }
    
    .join-community-section .perk-title {
        font-size: 0.85rem;
        letter-spacing: 0.8px;
        line-height: 1.3;
        margin-bottom: 0.6rem;
    }
    
    .join-community-section .perk-desc {
        font-size: 0.8rem;
        line-height: 1.3;
    }
}

@media (max-width: 480px) {
    .join-community-section {
        padding: 3rem 1rem;
    }
    
    .join-community-trigger .btn {
        min-width: 250px;
        padding: 1rem 1.8rem;
        font-size: 0.95rem;
        letter-spacing: 1.5px;
    }
    
    .join-community-section .waitlist-perks {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        margin: 2.5rem 0;
        max-width: 100%;
        width: 100%;
    }
    
    .join-community-section .perk-item {
        padding: 1.8rem 1.2rem;
        min-height: 100px;
        border-radius: 12px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .join-community-section .perk-title {
        font-size: 0.8rem;
        letter-spacing: 0.5px;
        margin-bottom: 0.5rem;
        line-height: 1.3;
    }
    
    .join-community-section .perk-desc {
        font-size: 0.75rem;
        line-height: 1.2;
    }
}

/* Join Community Modal */
.join-community-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.join-community-modal.show {
    display: flex;
}

.join-community-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    cursor: pointer;
}

.join-community-modal-content {
    position: relative;
    max-width: 650px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10000;
    animation: slideInUp 0.4s ease-out;
}

.join-community-close {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 40px;
    height: 40px;
    background: white;
    border: 2px solid #333;
    border-radius: 50%;
    color: #000;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.join-community-close:hover {
    background: #f8f9fa;
    transform: scale(1.1);
}

/* Form Container */
.join-community-form-container {
    background: white;
    border-radius: 20px;
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border: 3px solid #000;
}

.join-community-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #000;
    text-align: center;
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.join-community-subtitle {
    font-size: 1.1rem;
    color: #555;
    text-align: center;
    margin-bottom: 2.5rem;
    line-height: 1.5;
}

/* Form Styles */
.join-community-form {
    margin-bottom: 2.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.form-group input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    background: #f8f9fa;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: #000;
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.form-group input::placeholder {
    color: #999;
    font-weight: 500;
    letter-spacing: 1px;
}

/* Checkbox Styles */
.checkbox-group {
    margin: 2rem 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.custom-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #000;
    border-radius: 4px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .custom-checkbox {
    background: #000;
    color: white;
}

.checkbox-label input[type="checkbox"]:checked + .custom-checkbox::after {
    content: '✓';
    font-size: 0.8rem;
    font-weight: bold;
}

.checkbox-text {
    color: #333;
    font-weight: 600;
}

/* Submit Button */
.join-community-form .btn {
    width: 100%;
    padding: 1.2rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 12px;
    background: linear-gradient(135deg, #000 0%, #333 100%);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.join-community-form .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #333 0%, #555 100%);
    transition: left 0.5s ease;
    z-index: -1;
}

.join-community-form .btn:hover::before {
    left: 0;
}

.join-community-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Perks Section */
.join-community-perks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 2rem 0;
    border-top: 2px solid #f0f0f0;
}

.perk-item {
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.perk-item:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.perk-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.perk-desc {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

/* Footer Text */
.join-community-footer {
    text-align: center;
    font-style: italic;
    color: #666;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.4;
}

/* Messages */
.messages {
    margin-bottom: 2rem;
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 600;
}

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

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .join-community-modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .join-community-form-container {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }
    
    .join-community-title {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    
    .join-community-subtitle {
        font-size: 1rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .join-community-perks {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .perk-item {
        padding: 0.8rem;
    }
    
    .perk-title {
        font-size: 0.85rem;
    }
    
    .perk-desc {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .join-community-form-container {
        padding: 1.5rem 1rem;
    }
    
    .join-community-title {
        font-size: 1.8rem;
    }
    
    .form-group input {
        padding: 0.9rem 1.2rem;
        font-size: 0.95rem;
    }
    
    .checkbox-label {
        font-size: 0.9rem;
    }
    
    .join-community-form .btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}

/* Modal Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
