/* Victorian-themed Guild Detail Page Styling */

/* Container and Base */
.guild-detail-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 */
.guild-detail-header {
    text-align: center;
    margin-bottom: 50px;
    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,
.ornate-border-bottom::before {
    left: 0;
}

.ornate-border-top::after,
.ornate-border-bottom::after {
    right: 0;
}

.guild-header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
}

.guild-icon-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    border: 4px solid #ffffff;
}

.guild-header-text {
    text-align: left;
}

.guild-detail-title {
    font-size: 42px;
    font-weight: 700;
    color: #2c1810;
    margin: 0 0 10px 0;
    font-variant: small-caps;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.guild-detail-tagline {
    font-size: 18px;
    color: #6b4423;
    font-style: italic;
    letter-spacing: 2px;
}

/* Description Section */
.guild-description-section {
    background: #ffffff;
    border: 3px double #8b6914;
    border-radius: 8px;
    padding: 35px;
    margin-bottom: 50px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15), inset 0 0 0 1px rgba(139, 105, 20, 0.2);
}

.description-ornament {
    text-align: center;
    color: #8b6914;
    font-size: 20px;
    margin: 15px 0;
}

.guild-description-text {
    font-size: 17px;
    line-height: 1.8;
    color: #3d2817;
    text-align: justify;
    margin: 0;
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: #2c1810;
    margin-bottom: 30px;
    font-variant: small-caps;
    letter-spacing: 2px;
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 150px;
    height: 2px;
    background: linear-gradient(to right, transparent, #8b6914, transparent);
    margin: 12px auto 0;
}

/* Quick Stats Section */
.quick-stats-section {
    margin-bottom: 50px;
}

.quick-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.quick-stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f5f1e8 100%);
    border: 3px solid #8b6914;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quick-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.quick-stat-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.quick-stat-value {
    font-size: 36px;
    font-weight: 700;
    color: #8b6914;
    margin-bottom: 10px;
}

.quick-stat-label {
    font-size: 14px;
    color: #6b4423;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Performance Section */
.performance-section {
    margin-bottom: 50px;
}

.performance-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.performance-card {
    background: linear-gradient(135deg, #f5f1e8 0%, #e8dcc4 100%);
    border: 2px solid #8b6914;
    border-left: 5px solid #8b6914;
    border-radius: 6px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.performance-label {
    font-size: 13px;
    color: #6b4423;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-weight: 600;
}

.performance-value {
    font-size: 32px;
    font-weight: 700;
    color: #8b6914;
}

/* Leaderboard Section */
.leaderboard-section {
    margin-bottom: 50px;
}

.leaderboard-subtitle {
    text-align: center;
    font-size: 16px;
    color: #6b4423;
    font-style: italic;
    margin-top: -20px;
    margin-bottom: 30px;
}

.leaderboard-container {
    background: #ffffff;
    border: 3px double #8b6914;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.leaderboard-header {
    display: grid;
    grid-template-columns: 80px 1fr 150px 120px 140px;
    gap: 15px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #8b6914 0%, #d4af37 100%);
    border-radius: 6px;
    color: #ffffff;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.leaderboard-row {
    display: grid;
    grid-template-columns: 80px 1fr 150px 120px 140px;
    gap: 15px;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(139, 105, 20, 0.2);
    align-items: center;
    transition: background 0.2s ease;
}

.leaderboard-row:hover {
    background: rgba(139, 105, 20, 0.05);
}

.leaderboard-row-top {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(139, 105, 20, 0.1) 100%);
    border-left: 4px solid #d4af37;
    font-weight: 600;
}

.leaderboard-rank {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: #8b6914;
}

.leaderboard-member {
    color: #2c1810;
    font-size: 15px;
}

.leaderboard-points {
    text-align: right;
    color: #8b6914;
    font-weight: 700;
    font-size: 16px;
}

.leaderboard-streak {
    text-align: center;
    color: #6b4423;
    font-size: 15px;
}

.leaderboard-joined {
    text-align: right;
    color: #6b4423;
    font-size: 14px;
}

/* Activity Section */
.activity-section {
    margin-bottom: 50px;
}

.activity-subtitle {
    text-align: center;
    font-size: 16px;
    color: #6b4423;
    font-style: italic;
    margin-top: -20px;
    margin-bottom: 30px;
}

.activity-container {
    background: #ffffff;
    border: 3px double #8b6914;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.activity-row {
    display: grid;
    grid-template-columns: 110px 200px 150px 100px 1fr;
    gap: 15px;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(139, 105, 20, 0.15);
    align-items: center;
    font-size: 14px;
}

.activity-row:last-child {
    border-bottom: none;
}

.activity-time {
    color: #6b4423;
    font-size: 13px;
}

.activity-member {
    color: #2c1810;
    font-weight: 600;
}

.activity-action {
    color: #8b6914;
    font-weight: 600;
}

.activity-points {
    text-align: center;
    font-weight: 700;
    font-size: 16px;
}

.points-positive {
    color: #059669;
}

.points-negative {
    color: #dc2626;
}

.activity-description {
    color: #6b4423;
    font-style: italic;
    font-size: 13px;
}

/* History Section */
.history-section {
    margin-bottom: 50px;
}

.history-subtitle {
    text-align: center;
    font-size: 16px;
    color: #6b4423;
    font-style: italic;
    margin-top: -20px;
    margin-bottom: 30px;
}

.history-container {
    background: #ffffff;
    border: 3px double #8b6914;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.history-row {
    display: grid;
    grid-template-columns: 120px repeat(4, 1fr);
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid rgba(139, 105, 20, 0.15);
    align-items: center;
}

.history-row:last-child {
    border-bottom: none;
}

.history-month {
    color: #8b6914;
    font-weight: 700;
    font-size: 15px;
}

.history-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.history-stat-label {
    font-size: 11px;
    color: #6b4423;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.history-stat-value {
    font-size: 16px;
    color: #2c1810;
    font-weight: 600;
}

/* No Data Messages */
.no-data-message {
    text-align: center;
    padding: 50px 30px;
    color: #6b4423;
}

.no-data-icon {
    font-size: 60px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-data-message p {
    font-size: 16px;
    font-style: italic;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

/* Call to Action Section */
.guild-cta {
    text-align: center;
    background: linear-gradient(135deg, #8b6914 0%, #d4af37 50%, #8b6914 100%);
    border: 3px double #ffffff;
    border-radius: 12px;
    padding: 45px 35px;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    margin-bottom: 50px;
}

.cta-ornament {
    font-size: 22px;
    margin: 15px 0;
    letter-spacing: 18px;
}

.cta-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 18px;
    font-variant: small-caps;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-text {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 25px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    padding: 14px 35px;
    font-size: 17px;
    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 */
.guild-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) {
    .guild-header-content {
        flex-direction: column;
        text-align: center;
    }

    .guild-header-text {
        text-align: center;
    }

    .guild-detail-title {
        font-size: 32px;
    }

    .section-title {
        font-size: 26px;
    }

    .quick-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .performance-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .leaderboard-header,
    .leaderboard-row {
        grid-template-columns: 60px 1fr;
        gap: 10px;
    }

    .leaderboard-points,
    .leaderboard-streak,
    .leaderboard-joined {
        display: none;
    }

    .activity-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .history-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-button {
        width: 100%;
    }
}
