/* 明るく楽しいカジュアルテーマ */
:root {
    --primary-bg: linear-gradient(135deg, #000000 0%, #764ba2 100%);
    --secondary-bg: #ffffff;
    --card-bg: #ffffff;
    --accent-purple: #8B5CF6;
    --accent-blue: #3B82F6;
    --accent-cyan: #06D6A0;
    --accent-pink: #F72585;
    --accent-orange: #FF8500;
    --text-primary: #2D3748;
    --text-secondary: #4A5568;
    --text-accent: #7C3AED;
    --border-color: #E2E8F0;
    --hover-bg: #F7FAFC;
    --success-color: #10B981;
    --rainbow-gradient: linear-gradient(135deg, #FF6B6B, #4ECDC4, #45B7D1, #96CEB4, #FFEAA7, #DDA0DD);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: var(--primary-bg);
    min-height: 100vh;
    color: var(--text-primary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
    padding: 40px 20px;
}

header h1 {
    font-size: 3em;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #FF6B6B, #4ECDC4, #45B7D1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

header p {
    font-size: 1.2em;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.poster-btn {
    display: inline-block;
    background: linear-gradient(135deg, #FF9800, #F57C00);
    color: white !important;
    text-decoration: none !important;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9em;
    margin: 0 4px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(255, 152, 0, 0.3);
    text-shadow: none;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.poster-btn:hover {
    background: linear-gradient(135deg, #F57C00, #FF9800);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.4);
}

.poster-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

header img {
    width: 100px;
    margin-bottom: 20px;
}

.participation-section {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px;
}

.join-btn {
    background: linear-gradient(135deg, #FF6B6B, #4ECDC4);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 1.3em;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.join-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
    background: linear-gradient(135deg, #4ECDC4, #45B7D1);
}

.join-btn:active {
    transform: translateY(-1px);
}

.btn-icon {
    font-size: 1.5em;
}

.status {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    min-height: 20px;
}

.status.success {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.1), rgba(69, 183, 209, 0.1));
    color: #2D8B8B;
    border: 2px solid #4ECDC4;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.2);
}

.status.error {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(255, 154, 158, 0.1));
    color: #E57373;
    border: 2px solid #FF6B6B;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.2);
}

.poster-container {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    padding: 40px;
    border: 1px solid rgba(78, 205, 196, 0.2);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.poster-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #2C3E50;
    font-size: 2.2em;
    font-weight: 700;
    background: linear-gradient(135deg, #4ECDC4, #45B7D1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.participant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 25px;
    padding: 25px 0;
}

.participant-card {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(78, 205, 196, 0.3);
    border-radius: 20px;
    padding: 25px 15px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.participant-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 107, 107, 0.1), rgba(78, 205, 196, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.participant-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(69, 183, 209, 0.2);
    border-color: #45B7D1;
}

.participant-card:hover::before {
    opacity: 1;
}

.participant-card:active {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(69, 183, 209, 0.15);
}

.participant-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin: 0 auto 15px;
    border: 3px solid #45B7D1;
    box-shadow: 0 4px 15px rgba(69, 183, 209, 0.25);
    transition: all 0.3s ease;
}

.participant-name {
    font-weight: 600;
    color: #2C3E50;
    font-size: 1em;
    line-height: 1.3;
    word-break: break-word;
}

.participant-username {
    color: #7F8C8D;
    font-size: 0.85em;
    margin-top: 5px;
    opacity: 0.9;
}

.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    color: white;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #1da1f2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.empty-state p {
    font-size: 1.1em;
    color: var(--text-secondary);
}

/* ツイートモーダル */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 0;
    max-width: 520px;
    width: 90%;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
    animation: modalSlideIn 0.3s ease;
    overflow: hidden;
}

@keyframes modalSlideIn {
    from { 
        transform: translateY(-50px);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    background: linear-gradient(135deg, #FF6B6B, #4ECDC4, #45B7D1);
    color: white;
    padding: 25px 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3em;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close:hover {
    color: #f0f0f0;
}

.modal-body {
    padding: 35px;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
}

.modal-body p {
    margin: 12px 0;
    line-height: 1.6;
    color: #555;
}

.tweet-preview {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(78, 205, 196, 0.3);
    border-radius: 18px;
    padding: 25px;
    margin: 25px 0;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.tweet-content {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.4;
}

.tweet-content p {
    margin: 8px 0;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
    flex-wrap: wrap;
}

.tweet-btn {
    background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(29, 161, 242, 0.3);
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.tweet-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(29, 161, 242, 0.4);
    background: linear-gradient(135deg, #0d8bd9 0%, #1da1f2 100%);
}

.skip-btn {
    background: transparent;
    color: #666;
    border: 2px solid #E0E0E0;
    padding: 16px 28px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.skip-btn:hover {
    background: #F8F8F8;
    border-color: #4ECDC4;
    color: #333;
}

/* フッター */
.footer {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-top: 2px solid rgba(78, 205, 196, 0.2);
    color: #333;
    padding: 40px 0;
    margin-top: 60px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-links {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    gap: 35px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #555;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    border: 2px solid transparent;
}

.footer-links a:hover {
    background: rgba(78, 205, 196, 0.1);
    border-color: #4ECDC4;
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.2);
}

.footer-text {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

/* Symbol Community リンクを目立たせる */
.symbol-community-link {
    background: linear-gradient(135deg, #4ECDC4, #45B7D1) !important;
    color: white !important;
    font-weight: 600 !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.3) !important;
}

.symbol-community-link:hover {
    background: linear-gradient(135deg, #45B7D1, #4ECDC4) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 16px rgba(78, 205, 196, 0.4) !important;
}

/* ポリシーモーダル */
.policy-modal .modal-content {
    max-width: 600px;
    max-height: 80vh;
}

.policy-content {
    overflow-y: auto;
}

.policy-body {
    text-align: left;
    padding: 20px 30px;
    line-height: 1.6;
}

.policy-body h4 {
    color: #667eea;
    margin: 20px 0 10px 0;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 5px;
}

.policy-body h4:first-child {
    margin-top: 0;
}

.policy-body ul {
    margin: 10px 0;
    padding-left: 20px;
}

.policy-body li {
    margin: 5px 0;
}

.policy-body p {
    margin: 10px 0;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2.2em;
    }
    
    .participant-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 18px;
    }
    
    .participant-avatar {
        width: 70px;
        height: 70px;
    }
    
    .join-btn {
        padding: 16px 30px;
        font-size: 1.1em;
    }
    
    .modal-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .tweet-btn, .skip-btn {
        width: 100%;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 18px;
    }
    
    .policy-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .policy-body {
        padding: 15px 20px;
    }
}
