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

:root {
    --primary-color: #2c3e50;
    --accent-color: #e74c3c;
    --secondary-color: #3498db;
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --border-color: #e0e0e0;
    --text-color: #2c3e50;
    --text-secondary: #7f8c8d;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    background: #f5f5f5;
}

html {
    scroll-behavior: smooth;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        url('data:image/svg+xml;utf8,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, rgba(255, 255, 255, 1), transparent);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    padding: 2rem;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tennis Ball Logo - Modern Minimalist */
.logo {
    margin-bottom: 3rem;
}

.tennis-ball {
    width: 120px;
    height: 120px;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border-radius: 50%;
    margin: 0 auto;
    position: relative;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 -2px 8px rgba(0, 0, 0, 0.1);
    border: 3px solid rgba(255, 255, 255, 0.8);
}

.ball-line {
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 2px;
    background: rgba(200, 200, 200, 0.4);
    border-radius: 50%;
    transform: translateY(-50%);
}

.ball-line::before,
.ball-line::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid rgba(200, 200, 200, 0.4);
    border-radius: 50%;
    border-right: transparent;
    border-bottom: transparent;
}

.ball-line::before {
    top: -15px;
    left: 15px;
    transform: rotate(-45deg);
}

.ball-line::after {
    top: -15px;
    right: 15px;
    transform: rotate(135deg);
}

.title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
}

.subtitle {
    font-size: 2rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.tagline {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    font-weight: 300;
    letter-spacing: 0.3px;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 16px rgba(231, 76, 60, 0.3);
    transition: all 0.3s ease;
    border: none;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(231, 76, 60, 0.4);
    background: #c0392b;
}

/* Navigation */
.navbar {
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #edeff1;
}

.nav-container {
    display: flex;
    align-items: center;
    padding: 0;
    position: relative;
    height: 56px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 0;
    margin: 0 auto;
    padding: 0;
    height: 100%;
}

.nav-links li {
    height: 100%;
}

.nav-links a {
    text-decoration: none;
    color: #1c1c1c;
    font-weight: 600;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    height: 100%;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.nav-links a:hover {
    background: #f6f7f8;
    border-bottom-color: var(--accent-color);
}

/* User Menu Dropdown */
.nav-user-menu {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: var(--light-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
}

.user-menu-toggle:hover {
    background: #e9ecef;
    border-color: var(--secondary-color);
}

.user-name {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
}

.dropdown-arrow {
    font-size: 0.7rem;
    color: var(--text-secondary);
    transition: transform 0.2s ease;
}

.user-menu-toggle:hover .dropdown-arrow {
    transform: translateY(2px);
}

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 100;
}

.user-menu-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.8rem 1.2rem;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--light-color);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: var(--light-color);
    color: var(--accent-color);
}

.login-btn {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.login-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section */
.section {
    padding: 5rem 0;
}

.section-alt {
    background: var(--light-color);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3.5rem;
    color: var(--dark-color);
    position: relative;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.about-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.about-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: grayscale(0.3);
}

.about-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    font-weight: 600;
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.description {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
    color: var(--text-secondary);
}

.description p {
    margin-bottom: 1rem;
}

/* Timeline */
.timeline {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    position: relative;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 29px;
    top: 60px;
    bottom: -40px;
    width: 2px;
    background: var(--border-color);
}

.timeline-marker {
    width: 60px;
    height: 60px;
    background: white;
    color: var(--accent-color);
    border: 3px solid var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: var(--shadow);
}

.timeline-content {
    background: white;
    padding: 1.8rem;
    border-radius: 8px;
    flex: 1;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.timeline-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    font-weight: 600;
}

.timeline-content .date {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.timeline-content p {
    color: var(--text-secondary);
}

/* Rules Section */
.rules-content {
    max-width: 900px;
    margin: 0 auto;
}

.rules-box {
    background: #fff3cd;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2.5rem;
    border-left: 4px solid #ffc107;
    border: 1px solid #ffe69c;
}

.rules-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
    font-weight: 600;
}

.rules-box .highlight {
    font-size: 1.1rem;
    font-weight: 600;
    color: #856404;
    margin-bottom: 0.8rem;
}

.rules-box p {
    color: #856404;
}

.rules-list {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.rules-list h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    font-weight: 600;
}

.rules-list ul {
    list-style: none;
    padding-left: 0;
}

.rules-list li {
    padding: 0.8rem 0;
    padding-left: 2rem;
    position: relative;
    border-bottom: 1px solid var(--light-color);
    color: var(--text-secondary);
}

.rules-list li:last-child {
    border-bottom: none;
}

.rules-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.5rem;
}

/* Registration Section */
.register-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.register-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
    font-weight: 600;
}

.register-info p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.info-box {
    background: white;
    padding: 1.8rem;
    border-radius: 8px;
    margin-top: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.info-box h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
    font-weight: 600;
}

.info-box ul {
    list-style: none;
    padding-left: 0;
}

.info-box li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.info-box li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: 700;
}

.register-form-container {
    background: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.form-placeholder {
    text-align: center;
    padding: 2rem;
}

.form-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.2;
}

.form-placeholder h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
    font-weight: 600;
}

.form-notice {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.form-button {
    display: inline-block;
    padding: 0.9rem 2rem;
    background: #ddd;
    color: #999;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: not-allowed;
    text-decoration: none;
    transition: all 0.3s ease;
}

.form-button.active {
    background: var(--accent-color);
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(231, 76, 60, 0.3);
}

.form-button.active:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(231, 76, 60, 0.4);
}

.small-text {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #aaa;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: grayscale(0.3);
}

.contact-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--dark-color);
    font-weight: 600;
}

.contact-card p {
    color: var(--text-secondary);
}

.contact-card .small {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 0.5rem;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: rgba(255, 255, 255, 0.8);
    padding: 1.5rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

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

.footer-logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.tennis-ball.small {
    width: 40px;
    height: 40px;
}

.tennis-ball.small .ball-line {
    height: 1px;
}

.tennis-ball.small .ball-line::before,
.tennis-ball.small .ball-line::after {
    width: 12px;
    height: 12px;
    border-width: 1px;
}

.footer-logo p {
    font-size: 1rem;
    font-weight: 600;
}

.footer-info {
    text-align: right;
}

.footer-info p {
    margin: 0.25rem 0;
    font-size: 0.85rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: rgba(255, 255, 255, 1);
}

.footer-links .admin-link {
    font-size: 0.75rem;
    opacity: 0.6;
}

.footer-links .admin-link:hover {
    opacity: 1;
}

/* League Section */
.league-controls {
    text-align: right;
    margin-bottom: 2rem;
}

.league-btn {
    padding: 0.8rem 1.5rem;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.league-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

.league-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.league-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.league-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.league-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light-color);
}

.league-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark-color);
}

.league-card-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.edit-btn {
    background: var(--secondary-color);
    color: white;
}

.edit-btn:hover {
    background: #2980b9;
}

.delete-btn {
    background: #e74c3c;
    color: white;
}

.delete-btn:hover {
    background: #c0392b;
}

.league-info {
    margin-bottom: 1rem;
}

.league-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.league-info-label {
    font-weight: 600;
    color: var(--text-color);
    min-width: 80px;
    margin-right: 0.5rem;
}

.league-info-value {
    color: var(--text-secondary);
    flex: 1;
    line-height: 1.6;
}

.participants-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.participant-tag {
    background: var(--light-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.league-results {
    background: var(--light-color);
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    white-space: pre-line;
    line-height: 1.6;
}

.empty-league {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Board Section */
.board-controls {
    text-align: right;
    margin-bottom: 2rem;
}

.board-btn {
    padding: 0.8rem 1.5rem;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.board-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

.board-list {
    max-width: 900px;
    margin: 0 auto;
}

.board-item {
    background: white;
    padding: 1.2rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 0.8rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.board-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-color: var(--secondary-color);
}

.board-item-left {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    min-width: 100px;
}

.author-profile-image {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.author-profile-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    font-weight: bold;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.author-name-below {
    font-size: 0.75rem;
    color: #495057;
    text-align: center;
    width: 100%;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.author-label {
    font-size: 0.65rem;
    color: #999;
    text-align: center;
    margin-top: -0.2rem;
}

.board-item-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.board-title-area {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.board-item-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.board-category {
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

.board-category.공지, .board-category.notice {
    background: #fff3e0;
    color: #f57c00;
}

.board-category.대회, .board-category.tournament {
    background: #e3f2fd;
    color: #1976d2;
}

.board-category.매칭, .board-category.matching {
    background: #f3e5f5;
    color: #7b1fa2;
}

.board-category.자유, .board-category.free {
    background: #e8f5e9;
    color: #388e3c;
}

.board-category.review {
    background: #fce4ec;
    color: #c2185b;
}

.board-category.question {
    background: #fff9c4;
    color: #f57f17;
}

.board-category.marketplace {
    background: #e1f5fe;
    color: #0277bd;
}

.board-category.court_info {
    background: #f3e5f5;
    color: #6a1b9a;
}

.board-item-meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: #999;
}

.meta-divider {
    color: #ddd;
    font-size: 0.65rem;
}

.meta-date, .meta-views {
    color: #999;
}

.board-item-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.empty-board {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2.5rem;
    border-radius: 12px;
    max-width: 600px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close:hover,
.close:focus {
    color: var(--dark-color);
}

.modal-content h2 {
    margin-bottom: 2rem;
    color: var(--dark-color);
    font-size: 1.8rem;
    font-weight: 700;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.form-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.btn-primary {
    padding: 0.8rem 2rem;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

.btn-secondary {
    padding: 0.8rem 2rem;
    background: white;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--light-color);
    border-color: var(--text-color);
}

/* =============================================
   Reddit Style Layout (공통 레이아웃)
   ============================================= */

/* Reddit Style Navigation */
.reddit-navbar {
    background: white;
    border-bottom: 1px solid #edeff1;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.reddit-nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    height: 48px;
    gap: 1rem;
}

.reddit-logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.25rem;
    color: #1c1c1c;
}

.main-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.ppp-logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.logo-icon { font-size: 1.5rem; }
.logo-text { color: #1c1c1c; }

.reddit-nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
    position: relative;
}

.create-post-nav-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.4rem 0.75rem;
    background: transparent;
    border: 1px solid #0079d3;
    color: #0079d3;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.create-post-nav-btn:hover {
    background: #0079d3;
    color: white;
}

.plus-icon { font-size: 1.1rem; font-weight: 700; }

.user-menu-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    border: 1px solid #edeff1;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.user-menu-nav:hover { border-color: #0079d3; }

.user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff4500, #ff6347);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
}

.user-avatar-img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name-nav { font-size: 0.875rem; font-weight: 600; color: #1c1c1c; }
.dropdown-arrow-nav { font-size: 0.6rem; color: #7c7c7c; }

.user-dropdown-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    border: 1px solid #edeff1;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 100;
}

.user-dropdown-nav.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item-nav {
    display: block;
    padding: 0.75rem 1rem;
    color: #1c1c1c;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.2s;
}

.dropdown-item-nav:hover { background: #f6f7f8; }
.dropdown-item-nav:not(:last-child) { border-bottom: 1px solid #edeff1; }

.login-btn-nav {
    padding: 0.5rem 1.5rem;
    background: #0079d3;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.875rem;
    transition: background 0.2s;
}

.login-btn-nav:hover { background: #005fa3; }

/* Reddit Layout */
.reddit-layout {
    display: flex;
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.reddit-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.reddit-main {
    flex: 1;
    max-width: 800px;
}

/* Sidebar Styles */
.sidebar-card {
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.sidebar-card-header {
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-bottom: 1px solid #edeff1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-card-header h3 {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 700;
    color: #1c1c1c;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.view-all-btn {
    font-size: 0.75rem;
    color: #0079d3;
    text-decoration: none;
    font-weight: 600;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
}

.sidebar-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #1c1c1c;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.2s;
    border-left: 3px solid transparent;
}

.sidebar-menu-item:hover {
    background: #f8f9fa;
    border-left-color: #0079d3;
}

.sidebar-menu-item.active {
    background: #f8f9fa;
    border-left-color: #0079d3;
    font-weight: 600;
}

.menu-icon { font-size: 1.25rem; }

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    z-index: 1001;
}

.hamburger-line {
    width: 22px;
    height: 2px;
    background: #1c1c1c;
    transition: all 0.3s;
}

.mobile-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.mobile-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Reddit Layout Responsive */
@media (max-width: 968px) {
    .reddit-layout {
        flex-direction: column;
    }

    .reddit-sidebar {
        width: 100%;
        order: 2;
    }

    .reddit-main {
        order: 1;
        max-width: 100%;
    }

    .user-name-nav {
        display: none;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .mobile-sidebar-overlay {
        display: block;
    }

    .reddit-sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        background: white;
        z-index: 999;
        overflow-y: auto;
        transition: left 0.3s;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        padding-top: 1rem;
    }

    .reddit-sidebar.active {
        left: 0;
    }

    body.sidebar-open {
        overflow: hidden;
    }

    .reddit-main {
        width: 100%;
        max-width: 100%;
    }
}

/* Sidebar Additional Styles */
.club-card .club-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.club-name {
    font-weight: 600;
    color: #1c1c1c;
}

.club-arrow {
    color: #0079d3;
    font-weight: 700;
}

.no-club-notice {
    padding: 1rem;
    text-align: center;
    color: #7c7c7c;
    font-size: 0.875rem;
}

.no-club-notice a {
    color: #0079d3;
    text-decoration: none;
    font-weight: 600;
}

.no-club-notice a:hover {
    text-decoration: underline;
}

.community-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.member-count {
    margin-left: auto;
    font-size: 0.75rem;
    color: #7c7c7c;
    background: #f0f0f0;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
}

.empty-community,
.empty-game {
    padding: 1rem;
    text-align: center;
    color: #7c7c7c;
    font-size: 0.875rem;
}

.add-community,
.add-game {
    border-top: 1px solid #edeff1;
}

.game-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.game-hint {
    font-weight: 500;
    color: #1c1c1c;
}

.game-status {
    font-size: 0.75rem;
    color: #0079d3;
    background: #e3f2fd;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
}

/* Page Container */
.page-container {
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 1.5rem;
}

.page-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #edeff1;
}

.page-header h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    color: #1c1c1c;
}

.page-desc {
    margin: 0;
    font-size: 0.9rem;
    color: #7c7c7c;
}

/* Region Grid (지역별 멤버) */
.region-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.region-card {
    background: linear-gradient(135deg, #f8f9fa, #fff);
    border: 1px solid #edeff1;
    border-radius: 8px;
    overflow: hidden;
}

.region-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.region-name { font-weight: 700; font-size: 1rem; }

.region-count {
    font-size: 0.8rem;
    background: rgba(255,255,255,0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
}

.region-members {
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.region-member {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    text-decoration: none;
    color: #1c1c1c;
    border-radius: 6px;
    transition: background 0.2s;
}

.region-member:hover { background: #f0f0f0; }

.member-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff4500, #ff6347);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.member-avatar-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.member-name { flex: 1; font-size: 0.9rem; font-weight: 500; }

.member-tier {
    font-size: 0.75rem;
    color: #667eea;
    font-weight: 600;
    background: #e8eaf6;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.empty-region {
    text-align: center;
    padding: 3rem 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.empty-region p {
    margin: 0.5rem 0;
    color: #7c7c7c;
    font-size: 0.9rem;
}

.empty-region a {
    color: #667eea;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .title {
        font-size: 2.2rem;
    }

    .subtitle {
        font-size: 1.5rem;
    }

    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 0.8rem 1rem;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 0.3rem;
        justify-content: center;
        margin: 0;
    }

    .nav-links a {
        font-size: 0.85rem;
        padding: 0.5rem 0.8rem;
    }

    .nav-user-menu {
        position: static;
        transform: none;
    }

    .section {
        padding: 3rem 0;
    }

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

    .register-content {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        flex-direction: column;
        gap: 1rem;
    }

    .timeline-item:not(:last-child)::after {
        display: none;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-info {
        text-align: center;
    }

    .about-card .icon {
        font-size: 2.5rem;
    }

    .contact-icon {
        font-size: 2.5rem;
    }

    .league-grid {
        grid-template-columns: 1fr;
    }

    .league-card {
        padding: 1.5rem;
    }

    .league-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .board-item {
        padding: 1.2rem;
    }

    .board-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .board-category {
        margin-left: 0;
    }

    .modal-content {
        margin: 10% 1rem;
        padding: 2rem 1.5rem;
    }

    .form-buttons {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}
