/* Guild-specific CSS extracted from Astro pages */

/* Top navigation bar */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(45, 27, 105, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 45px;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.top-nav .nav-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    border-radius: 4px;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.top-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
    transform: none;
    box-shadow: none;
}

.top-nav .nav-link.active {
    border-bottom: 2px solid #ffd700;
    padding-bottom: calc(0.5rem - 2px);
}

/* Base guild styling */
.guild-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #2d1b69 0%, #0f0f23 100%);
    font-family: 'Arial', sans-serif;
    color: #e0e0e0;
    line-height: 1.6;
}

.guild-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 5rem 2rem 3rem;
    text-align: center;
}

/* Full-width container for pages that need maximum screen utilization */
.full-width-container {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 5rem 2rem 3rem;
    text-align: center;
}

/* Guild name/title styling */
.guild-name {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    color: #f0f0f0;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 3rem;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    color: #f0f0f0;
}

/* Guild heraldry/sigil styling */
.heraldry {
    margin: 2rem 0;
}

.heraldry img {
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

/* Guild content styling */
.guild-content {
    font-size: 1.2rem;
    color: #d0d0d0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
    margin: 2rem 0;
}

.lore-content {
    font-size: 1.1rem;
    color: #d0d0d0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

.lore-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.welcome-content p {
    margin-bottom: 1.5rem;
}

/* Guild greeting styling */
.greeting {
    font-size: 1.5rem;
    font-style: italic;
    margin: 2rem 0;
    color: #c0c0c0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.tagline {
    font-size: 1.2rem;
    margin-top: 1.5rem;
    color: #d0d0d0;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Guild navigation styling */
.navigation {
    margin-top: 3rem;
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-link {
    display: inline-block;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    color: #e0e0e0;
    text-decoration: none;
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff;
}

/* Guild form styling */
.registration-form {
    max-width: 500px;
    margin: 2rem auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #f0f0f0;
    font-weight: bold;
    font-size: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.form-input {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.form-input::placeholder {
    color: #a0a0a0;
    opacity: 0.8;
}

.form-submit {
    width: 100%;
    padding: 1.2rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    cursor: pointer;
    margin-top: 1rem;
}

.form-submit:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Error and success messaging */
.error-message {
    color: #ff6b6b;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    background: rgba(255, 107, 107, 0.1);
    padding: 0.5rem;
    border-radius: 4px;
    border-left: 3px solid #ff6b6b;
}

.general-error {
    margin: 1rem auto;
    max-width: 500px;
    font-size: 1rem;
    padding: 1rem;
    text-align: center;
    background: rgba(255, 107, 107, 0.15);
    border: 2px solid rgba(255, 107, 107, 0.3);
    border-radius: 8px;
}

.success-greeting {
    color: #6bcf7f;
    font-weight: bold;
}

.inviter-highlight {
    color: #f0f0f0;
    font-weight: bold;
    font-size: 1.3rem;
}

/* Responsive padding for full-width container */
@media (max-width: 768px) {
    .full-width-container {
        padding: 4rem 1rem 2rem;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .top-nav .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .guild-container {
        padding: 4rem 1rem 2rem;
    }

    .guild-name {
        font-size: 2rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .heraldry img {
        max-width: 300px;
    }

    .guild-content {
        font-size: 1rem;
    }

    .lore-content {
        font-size: 1rem;
    }

    .lore-content p {
        text-align: left;
    }

    .greeting {
        font-size: 1.2rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .navigation {
        gap: 1rem;
    }

    .nav-link {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .registration-form {
        margin: 1.5rem auto;
        padding: 1.5rem;
        max-width: calc(100% - 2rem);
    }

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

    .form-group label {
        font-size: 0.9rem;
    }

    .form-input {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .form-submit {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .error-message {
        font-size: 0.8rem;
        padding: 0.4rem;
    }

    .general-error {
        margin: 1rem;
        padding: 0.8rem;
        font-size: 0.9rem;
    }
}

/* Members List Styles */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem auto;
    max-width: 2400px; /* Prevent excessive stretching on ultra-wide screens */
    width: 100%;
}

.member-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    height: 200px;
    overflow: hidden;
    cursor: pointer;
}

.member-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.member-photo {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
}

.member-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.member-image-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 3px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.member-initials {
    font-size: 1.5rem;
    font-weight: bold;
    color: #f0f0f0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.member-info {
    flex: 1;
    min-width: 0; /* Allow text to wrap */
}

.member-header {
    margin-bottom: 0.75rem;
}

.member-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: #f0f0f0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.member-year {
    font-size: 1.1rem;
    color: #c0c0c0;
    font-style: italic;
}

.member-bio {
    color: #d0d0d0;
    font-size: 1rem;
    line-height: 1.5;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

.member-bio-truncated {
    color: #d0d0d0;
    font-size: 1rem;
    line-height: 1.5;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
}

.empty-state {
    text-align: center;
    color: #c0c0c0;
    font-size: 1.2rem;
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Enhanced responsive grid behavior */
@media (min-width: 1200px) {
    .members-grid {
        gap: 2.5rem;
    }
}

@media (min-width: 1600px) {
    .members-grid {
        gap: 3rem;
    }
}

/* Mobile responsiveness for member cards */
@media (max-width: 768px) {
    .members-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 1.5rem 0;
    }

    .member-card {
        padding: 1.25rem;
        gap: 1.25rem;
    }

    .member-photo {
        width: 70px;
        height: 70px;
    }

    .member-initials {
        font-size: 1.3rem;
    }

    .member-name {
        font-size: 1.2rem;
    }

    .member-year {
        font-size: 1rem;
    }

    .member-bio {
        font-size: 0.95rem;
    }
}

/* Modal Styles */
.guild-modal {
    background: rgba(45, 27, 105, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
}

.guild-modal .modal-header {
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.guild-modal .modal-header .modal-title {
    color: #f0f0f0;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.guild-modal .modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.8;
}

.guild-modal .modal-header .btn-close:hover {
    opacity: 1;
}

.guild-modal .modal-body {
    color: #e0e0e0;
    background: transparent;
}

.guild-modal .modal-body h4 {
    color: #f0f0f0;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.guild-modal .modal-body .text-muted {
    color: #c0c0c0 !important;
    font-style: italic;
}

/* Role Squircles */
.member-roles {
    margin-bottom: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.role-squircle {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #000;
    text-shadow: none;
    line-height: 1;
}
