/* Practice Hub - Gaudí-Inspired Organic Design */

:root {
    /* Nature palette - forest canopy */
    --sage: #87A878;
    --sage-light: #A8C69F;
    --moss: #5D7052;
    --forest: #3D4F35;
    --cream: #F5F2EB;
    --gold: #D4A853;
    --gold-light: #E8C97A;
    --bark: #4A3C31;
    
    /* Functional colors */
    --text-primary: #2C3E2D;
    --text-secondary: #5A6B5C;
    --shadow-soft: rgba(61, 79, 53, 0.1);
    --shadow-medium: rgba(61, 79, 53, 0.2);
    
    /* Animation */
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, var(--cream) 0%, #E8E4DB 50%, #DDD8CC 100%);
    min-height: 100vh;
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Floating Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0.4;
    animation: float 15s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Canopy Background */
.canopy {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(135, 168, 120, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 30%, rgba(168, 198, 159, 0.1) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 80%, rgba(93, 112, 82, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: canopySway 20s infinite ease-in-out;
}

@keyframes canopySway {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.02) rotate(0.5deg);
    }
}

/* Container */
.hub-container {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.hub-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(135, 168, 120, 0.2);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    color: var(--forest);
}

.logo-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--forest);
}

.hub-nav {
    display: flex;
    gap: 2rem;
}

.nav-item {
    font-size: 0.95rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: var(--transition-smooth);
}

.nav-item.active {
    background: var(--sage-light);
    color: var(--forest);
    font-weight: 500;
}

/* Main Content */
.hub-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    gap: 3rem;
}

.hub-title-section {
    text-align: center;
}

.hub-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    font-weight: 600;
    color: var(--forest);
    margin-bottom: 0.5rem;
}

.hub-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.hub-tagline {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--sage);
}

/* Mates Container */
.mates-container {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Mate Cards - Organic Blob Shape (Gaudí-inspired) */
.mate-card {
    position: relative;
    width: 340px;
    padding: 3rem 2.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border-radius: 60% 40% 50% 50% / 50% 50% 40% 60%;
    box-shadow: 
        0 15px 50px var(--shadow-soft),
        0 5px 15px var(--shadow-medium),
        inset 0 -2px 10px rgba(135, 168, 120, 0.1);
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    overflow: visible;
    border: 2px solid rgba(135, 168, 120, 0.2);
}

.mate-card::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, var(--sage-light), var(--gold-light), var(--sage));
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: var(--transition-smooth);
}

.mate-card::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px dashed rgba(135, 168, 120, 0.15);
    border-radius: 55% 45% 45% 55% / 45% 55% 45% 55%;
    pointer-events: none;
}

.mate-card:hover {
    transform: translateY(-10px) scale(1.03) rotate(-1deg);
    box-shadow: 
        0 25px 70px var(--shadow-medium),
        0 10px 30px var(--shadow-soft);
    border-radius: 50% 50% 40% 60% / 60% 40% 50% 50%;
}

.mate-card:hover::before {
    opacity: 0.5;
}

.mate-card.gaston {
    border-radius: 40% 60% 50% 50% / 50% 50% 60% 40%;
}

.mate-card.gaston:hover {
    transform: translateY(-10px) scale(1.03) rotate(1deg);
    border-radius: 50% 50% 60% 40% / 40% 60% 50% 50%;
}

.mate-card.lumiere {
    border-radius: 50% 50% 40% 60% / 60% 40% 50% 50%;
}

.mate-card.lumiere:hover {
    border-radius: 40% 60% 50% 50% / 50% 50% 60% 40%;
}

/* Mate Glow */
.mate-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--gold-light) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
}

.mate-card:hover .mate-glow {
    opacity: 0.3;
}

/* Mate Icon */
.mate-icon {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-emoji {
    font-size: 3rem;
    z-index: 1;
    animation: breathe 3s infinite ease-in-out;
}

@keyframes breathe {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.icon-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--sage-light);
    border-radius: 50%;
    animation: pulse 2s infinite ease-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.mate-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--forest);
    margin-bottom: 0.25rem;
}

.mate-role {
    font-size: 0.9rem;
    color: var(--gold);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.mate-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Mate Button */
.mate-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: linear-gradient(135deg, var(--sage) 0%, var(--moss) 100%);
    color: white;
    border: none;
    border-radius: 30px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-bounce);
    box-shadow: 0 4px 15px rgba(93, 112, 82, 0.3);
}

.mate-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(93, 112, 82, 0.4);
}

.btn-arrow {
    width: 18px;
    height: 18px;
    transition: var(--transition-smooth);
}

.mate-button:hover .btn-arrow {
    transform: translateX(4px);
}

/* Footer Info */
.hub-footer-info {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hub-footer-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.6);
    padding: 0.75rem 1.25rem;
    border-radius: 20px;
}

/* Footer */
.hub-footer {
    text-align: center;
    padding: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(61, 79, 53, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: white;
    padding: 3rem;
    border-radius: 30px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2);
    transform: translateY(20px) scale(0.95);
    transition: var(--transition-bounce);
}

.modal.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.modal-close:hover {
    color: var(--forest);
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.modal-content h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: var(--forest);
    margin-bottom: 0.75rem;
}

.modal-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Form */
#login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#login-form input {
    padding: 1rem 1.25rem;
    border: 2px solid #E5E5E5;
    border-radius: 15px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

#login-form input:focus {
    outline: none;
    border-color: var(--sage);
    box-shadow: 0 0 0 3px rgba(135, 168, 120, 0.2);
}

.modal-submit {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--bark);
    border: none;
    border-radius: 25px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-bounce);
    box-shadow: 0 4px 15px rgba(212, 168, 83, 0.3);
}

.modal-submit:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(212, 168, 83, 0.4);
}

.modal-note {
    font-size: 0.85rem !important;
    color: var(--text-secondary) !important;
    margin-top: 1rem;
    margin-bottom: 0 !important;
}

/* Coming Soon Modal */
.coming-soon {
    max-width: 500px;
}

.launch-date {
    background: linear-gradient(135deg, var(--cream) 0%, #E8E4DB 100%);
    padding: 1.25rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
}

.date-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.date-value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--forest);
}

.features-preview {
    text-align: left;
    margin-bottom: 1.5rem;
}

.features-preview h3 {
    font-size: 1rem;
    color: var(--forest);
    margin-bottom: 0.75rem;
}

.features-preview ul {
    list-style: none;
}

.features-preview li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Options Modal */
.options-modal {
    max-width: 420px;
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.option-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--cream);
    border: 2px solid transparent;
    border-radius: 15px;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: left;
}

.option-btn:hover {
    border-color: var(--sage);
    background: white;
    transform: translateX(5px);
}

.option-icon {
    font-size: 1.5rem;
}

.option-text {
    display: flex;
    flex-direction: column;
}

.option-label {
    font-weight: 500;
    color: var(--forest);
    font-size: 1rem;
}

.option-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .hub-header {
        padding: 1rem 1.5rem;
    }
    
    .hub-title {
        font-size: 2.5rem;
    }
    
    .mates-container {
        gap: 2rem;
    }
    
    .mate-card {
        width: 100%;
        max-width: 340px;
    }
    
    .hub-footer-info {
        flex-direction: column;
        align-items: center;
    }
}