/* Victorian-themed Guilds Page Styling */

/* Container and Base */
.guilds-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background: linear-gradient(to bottom, #f8f4e6 0%, #e8dcc4 100%);
    font-family: 'Georgia', 'Garamond', serif;
    color: #2c1810;
}

/* Header Section */
.guilds-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.ornate-border-top,
.ornate-border-bottom {
    height: 2px;
    background: linear-gradient(to right, transparent, #8b6914, transparent);
    margin: 20px auto;
    max-width: 600px;
    position: relative;
}

.ornate-border-top::before,
.ornate-border-top::after,
.ornate-border-bottom::before,
.ornate-border-bottom::after {
    content: "❖";
    position: absolute;
    color: #8b6914;
    font-size: 16px;
    top: -9px;
}

.ornate-border-top::before {
    left: 0;
}

.ornate-border-top::after {
    right: 0;
}

.ornate-border-bottom::before {
    left: 0;
}

.ornate-border-bottom::after {
    right: 0;
}

.guilds-title {
    font-size: 48px;
    font-weight: 700;
    color: #2c1810;
    margin: 20px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 2px;
    font-variant: small-caps;
}

.guilds-subtitle {
    font-size: 20px;
    color: #6b4423;
    font-style: italic;
    letter-spacing: 3px;
}

/* Status Message */
.guild-status-message {
    max-width: 800px;
    margin: 0 auto 30px;
    padding: 20px 30px;
    border-radius: 8px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.guild-status-success {
    background: linear-gradient(135deg, #d4f4dd 0%, #b8f0c8 100%);
    color: #1e7e34;
    border-color: #28a745;
}

.guild-status-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-color: #dc3545;
}

/* Current Guild Status */
.current-guild-status {
    max-width: 500px;
    margin: 0 auto 40px;
    background: linear-gradient(135deg, #ffffff 0%, #f5f1e8 100%);
    border: 3px solid #8b6914;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 25px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.current-guild-icon-container {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: 3px solid #ffffff;
    flex-shrink: 0;
}

.current-guild-text {
    flex: 1;
}

.current-guild-label {
    font-size: 13px;
    color: #6b4423;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 5px;
}

.current-guild-name {
    font-size: 24px;
    color: #2c1810;
    font-weight: 700;
    font-variant: small-caps;
    letter-spacing: 1px;
}

/* Introduction Section */
.guilds-introduction {
    background: #ffffff;
    border: 3px double #8b6914;
    border-radius: 8px;
    padding: 40px;
    margin-bottom: 60px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15), inset 0 0 0 1px rgba(139, 105, 20, 0.2);
    position: relative;
}

.introduction-ornament {
    text-align: center;
    color: #8b6914;
    font-size: 24px;
    margin: 20px 0;
}

.introduction-text {
    font-size: 18px;
    line-height: 1.8;
    color: #3d2817;
    margin-bottom: 20px;
    text-align: justify;
}

.introduction-text:last-of-type {
    margin-bottom: 0;
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #2c1810;
    margin-bottom: 40px;
    font-variant: small-caps;
    letter-spacing: 2px;
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 200px;
    height: 2px;
    background: linear-gradient(to right, transparent, #8b6914, transparent);
    margin: 15px auto 0;
}

/* How It Works Section */
.guilds-how-it-works {
    margin-bottom: 60px;
}

.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.how-it-works-card {
    background: linear-gradient(135deg, #ffffff 0%, #f5f1e8 100%);
    border: 2px solid #8b6914;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.how-it-works-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card-number {
    font-size: 48px;
    font-weight: 700;
    color: #8b6914;
    margin-bottom: 15px;
    font-style: italic;
}

.how-it-works-card h3 {
    font-size: 24px;
    color: #2c1810;
    margin-bottom: 15px;
    font-variant: small-caps;
}

.how-it-works-card p {
    font-size: 16px;
    line-height: 1.6;
    color: #4a3325;
}

/* Guild Cards */
.guilds-showcase {
    margin-bottom: 60px;
}

.guild-card {
    margin-bottom: 50px;
    position: relative;
}

.guild-card-border {
    border: 4px double #8b6914;
    border-radius: 12px;
    padding: 4px;
    background: linear-gradient(135deg, #d4af37 0%, #8b6914 100%);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.guild-card-inner {
    background: #ffffff;
    border-radius: 8px;
    padding: 35px;
    border: 1px solid rgba(139, 105, 20, 0.3);
}

.guild-header {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(139, 105, 20, 0.2);
}

.guild-icon-container {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 3px solid #ffffff;
}

.guild-icon {
    font-size: 40px;
}

.guild-name-section {
    flex: 1;
}

.guild-name {
    font-size: 32px;
    font-weight: 700;
    color: #2c1810;
    margin: 0 0 8px 0;
    font-variant: small-caps;
    letter-spacing: 1px;
}

.guild-tagline {
    font-size: 16px;
    color: #6b4423;
    font-style: italic;
    letter-spacing: 2px;
}

.guild-description {
    margin-bottom: 25px;
}

.guild-description p {
    font-size: 17px;
    line-height: 1.7;
    color: #3d2817;
    text-align: justify;
}

.guild-philosophy {
    background: linear-gradient(135deg, #f5f1e8 0%, #e8dcc4 100%);
    border-left: 4px solid #8b6914;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 4px;
}

.philosophy-label {
    font-size: 14px;
    font-weight: 700;
    color: #8b6914;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.philosophy-text {
    font-size: 16px;
    line-height: 1.7;
    color: #3d2817;
    font-style: italic;
    margin: 0;
}

.guild-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid rgba(139, 105, 20, 0.2);
}

.stat-item {
    text-align: center;
}

.stat-label {
    font-size: 13px;
    color: #6b4423;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 600;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #8b6914;
}

/* Guild Action Panel */
.guild-action-panel {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid rgba(139, 105, 20, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.guild-action-button {
    background: linear-gradient(135deg, #8b6914 0%, #d4af37 100%);
    color: #ffffff;
    border: 2px solid #8b6914;
    padding: 14px 35px;
    font-size: 17px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-variant: small-caps;
    letter-spacing: 1px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-family: 'Georgia', 'Garamond', serif;
}

.guild-action-button:hover {
    background: linear-gradient(135deg, #d4af37 0%, #8b6914 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.guild-action-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.guild-current-label {
    font-size: 18px;
    font-weight: 700;
    color: #28a745;
    font-variant: small-caps;
    letter-spacing: 1px;
    padding: 14px 35px;
    background: linear-gradient(135deg, #d4f4dd 0%, #b8f0c8 100%);
    border: 2px solid #28a745;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Points Earning Section */
.guilds-points-earning {
    margin-bottom: 60px;
}

.points-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.points-card {
    background: linear-gradient(135deg, #ffffff 0%, #f5f1e8 100%);
    border: 2px solid #8b6914;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.points-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.points-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.points-name {
    font-size: 16px;
    font-weight: 700;
    color: #2c1810;
    margin-bottom: 8px;
    font-variant: small-caps;
}

.points-value {
    font-size: 22px;
    font-weight: 700;
    color: #8b6914;
    margin-bottom: 8px;
}

.points-desc {
    font-size: 13px;
    color: #6b4423;
    line-height: 1.4;
}

/* Call to Action Section */
.guilds-cta {
    text-align: center;
    background: linear-gradient(135deg, #8b6914 0%, #d4af37 50%, #8b6914 100%);
    border: 3px double #ffffff;
    border-radius: 12px;
    padding: 50px 40px;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    margin-bottom: 60px;
}

.cta-ornament {
    font-size: 24px;
    margin: 20px 0;
    letter-spacing: 20px;
}

.cta-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    font-variant: small-caps;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-text {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-variant: small-caps;
    letter-spacing: 1px;
    border: 2px solid;
}

.cta-primary {
    background: #ffffff;
    color: #8b6914;
    border-color: #ffffff;
}

.cta-primary:hover {
    background: #f5f1e8;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.cta-secondary {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Footer */
.guilds-footer {
    text-align: center;
    margin-top: 40px;
}

.footer-ornament {
    height: 3px;
    background: linear-gradient(to right, transparent, #8b6914, transparent);
    max-width: 400px;
    margin: 0 auto;
    position: relative;
}

.footer-ornament::before,
.footer-ornament::after {
    content: "◆";
    position: absolute;
    color: #8b6914;
    font-size: 14px;
    top: -7px;
}

.footer-ornament::before {
    left: 0;
}

.footer-ornament::after {
    right: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .guilds-title {
        font-size: 32px;
    }

    .guilds-subtitle {
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .guild-header {
        flex-direction: column;
        text-align: center;
    }

    .guild-name {
        font-size: 26px;
    }

    .current-guild-status {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .current-guild-name {
        font-size: 20px;
    }

    .guild-stats {
        grid-template-columns: 1fr;
    }

    .guild-action-panel {
        flex-direction: column;
    }

    .guild-action-button {
        width: 100%;
        padding: 12px 25px;
        font-size: 16px;
    }

    .guild-current-label {
        width: 100%;
        padding: 12px 25px;
        font-size: 16px;
    }

    .how-it-works-grid {
        grid-template-columns: 1fr;
    }

    .points-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-button {
        width: 100%;
    }
}
