/* レスポンシブデザイン */

/* タブレット */
@media (max-width: 768px) {
    .invite-container {
        padding: 30px 15px;
    }
    
    .step-card {
        padding: 40px 30px;
    }
    
    .step-title {
        font-size: 1.8em;
    }
    
    .step-description {
        font-size: 1em;
    }
    
    .permissions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .permission-card {
        padding: 25px 20px;
    }
    
    .bot-avatar {
        width: 100px;
        height: 100px;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        justify-content: center;
        padding: 14px 24px;
    }
    
    .back-button {
        top: 20px;
        left: 20px;
    }
}

/* モバイル */
@media (max-width: 480px) {
    .invite-container {
        padding: 20px 10px;
    }
    
    .step-card {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .step-title {
        font-size: 1.6em;
        margin-bottom: 15px;
    }
    
    .step-description {
        font-size: 0.95em;
    }
    
    .permission-card {
        padding: 20px 15px;
    }
    
    .permission-title {
        font-size: 1.1em;
    }
    
    .permission-list li {
        font-size: 0.9em;
        padding: 6px 0;
    }
    
    .bot-avatar {
        width: 80px;
        height: 80px;
    }
    
    .step-indicator {
        padding: 10px 20px;
        font-size: 0.8em;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.95em;
    }
    
    .link-display {
        padding: 15px;
        font-size: 0.8em;
    }
    
    .back-button {
        top: 15px;
        left: 15px;
    }
}

/* 大画面 */
@media (min-width: 1200px) {
    .invite-container {
        max-width: 1000px;
    }
    
    .step-card {
        padding: 60px 50px;
    }
    
    .permissions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ダークモード対応 */
@media (prefers-color-scheme: dark) {
    :root {
        --background: #1a1a1a;
        --surface: #2d2d2d;
        --text-primary: #ffffff;
        --text-secondary: #cccccc;
    }
}

/* 高コントラスト対応 */
@media (prefers-contrast: high) {
    :root {
        --glass-bg: rgba(255, 255, 255, 0.2);
        --glass-border: rgba(255, 255, 255, 0.4);
    }
    
    .step-card {
        border-width: 2px;
    }
    
    .permission-card {
        border-width: 2px;
    }
}

/* アニメーション無効化対応 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .bot-avatar {
        animation: none;
    }
    
    .step-card::before {
        animation: none;
    }
}
