@charset "utf-8";

/* ========================================
   共通スタイル
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ========================================
   管理画面（Dashboard）- ダークモードのまま
======================================== */
body.dashboard {
    background: #0f1419;
    color: #e7e9ea;
    display: flex;
    min-height: 100vh;
}

/* サイドバー */
.sidebar {
    width: 260px;
    background: #16181c;
    border-right: 1px solid #2f3336;
    padding: 20px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid #2f3336;
}

.sidebar-header h1 {
    font-size: 20px;
    color: #1d9bf0;
    margin-bottom: 5px;
}

.sidebar-header .user-info {
    font-size: 13px;
    color: #71767b;
}

.sidebar-nav {
    margin-top: 20px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #e7e9ea;
    text-decoration: none;
    transition: background 0.2s;
    font-size: 15px;
}

.sidebar-nav a:hover {
    background: #1d1f23;
}

.sidebar-nav a.active {
    background: #1d1f23;
    color: #1d9bf0;
    font-weight: 600;
}

.sidebar-nav .icon {
    width: 24px;
    margin-right: 15px;
    font-size: 20px;
}

.logout-btn {
    margin-top: 20px;
    padding: 0 20px;
}

.logout-btn a {
    display: block;
    text-align: center;
    padding: 12px;
    background: #f91880;
    color: white;
    text-decoration: none;
    border-radius: 24px;
    font-weight: 600;
    transition: background 0.2s;
}

.logout-btn a:hover {
    background: #e0175f;
}

/* メインコンテンツ */
.main-content {
    margin-left: 260px;
    flex: 1;
    padding: 30px;
}

.page-header {
    margin-bottom: 30px;
}

.page-header h2 {
    font-size: 28px;
    margin-bottom: 5px;
    color: #e7e9ea;
}

.page-header p {
    color: #71767b;
    font-size: 14px;
}

/* 統計カード */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: #16181c;
    border: 1px solid #2f3336;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.2s;
}

.stat-card:hover {
    border-color: #1d9bf0;
    transform: translateY(-2px);
}

.stat-card h3 {
    font-size: 13px;
    color: #71767b;
    margin-bottom: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card .number {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-card .label {
    font-size: 12px;
    color: #71767b;
}

.stat-card.pending .number { color: #f91880; }
.stat-card.staff .number { color: #1d9bf0; }
.stat-card.users .number { color: #00ba7c; }
.stat-card.posts .number { color: #ffd400; }
.stat-card.stories .number { color: #7856ff; }
.stat-card.new .number { color: #ff7a00; }

/* コンテンツセクション */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.content-section {
    background: #16181c;
    border: 1px solid #2f3336;
    border-radius: 12px;
    padding: 24px;
}

.content-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #2f3336;
    color: #e7e9ea;
}

.item-list {
    list-style: none;
}

.item {
    padding: 16px;
    border-bottom: 1px solid #2f3336;
    transition: background 0.2s;
}

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

.item:hover {
    background: #1d1f23;
}

.item h4 {
    font-size: 16px;
    margin-bottom: 6px;
    color: #e7e9ea;
}

.item p {
    font-size: 13px;
    color: #71767b;
    margin-bottom: 4px;
}

.item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.item-date {
    font-size: 12px;
    color: #71767b;
}

.btn-primary {
    background: #1d9bf0;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #1a8cd8;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #71767b;
}

.empty-state p {
    font-size: 15px;
}

.post-content {
    margin-top: 8px;
    font-size: 14px;
    color: #e7e9ea;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.alert {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 3px solid;
}

.alert-error {
    background: rgba(249, 24, 128, 0.1);
    border-color: #f91880;
    color: #f91880;
}

/* ========================================
   女性キャスト側 - 白系デザイン
======================================== */
.register-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    color: #2c3e50;
    padding: 40px 20px;
}

.register-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.register-header {
    text-align: center;
    margin-bottom: 40px;
}

.register-header h1 {
    font-size: 32px;
    color: #e91e63;
    margin-bottom: 10px;
    font-weight: 700;
}

.register-header p {
    font-size: 16px;
    color: #6c757d;
}

.register-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.success-message {
    background: #e8f5e9;
    border: 2px solid #4caf50;
    color: #2e7d32;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.success-message h2 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #2e7d32;
}

.success-message p {
    line-height: 1.6;
    margin-bottom: 10px;
    color: #2e7d32;
}

.success-message .btn {
    display: inline-block;
    background: #e91e63;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    margin-top: 12px;
    font-weight: 600;
    transition: background 0.2s;
}

.success-message .btn:hover {
    background: #c2185b;
}

.error-messages {
    background: #ffebee;
    border: 2px solid #f44336;
    color: #c62828;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
}

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

.error-messages li {
    margin-bottom: 8px;
    color: #c62828;
}

.error-messages li:before {
    content: "• ";
    font-weight: bold;
    color: #f44336;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 15px;
}

.form-group label .required {
    color: #f44336;
    margin-left: 4px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group select {
    width: 100%;
    padding: 14px 16px;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    color: #2c3e50;
    font-size: 16px;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #e91e63;
    background: white;
}

.form-group .help-text {
    font-size: 13px;
    color: #6c757d;
    margin-top: 6px;
}

.form-section {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid #e0e0e0;
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h2 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #e91e63;
    font-weight: 700;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: #41d392;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

.submit-btn:hover {
    background: #c2185b;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(233, 30, 99, 0.4);
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #e91e63;
    text-decoration: none;
    font-weight: 600;
}

.back-link:hover {
    text-decoration: underline;
}

.notice-box {
    background: #fff3e0;
    border: 2px solid #ff9800;
    color: #e65100;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
}

.notice-box strong {
    display: block;
    margin-bottom: 8px;
    color: #e65100;
}

.verify-code-box {
    background: #e3f2fd;
    border: 2px solid #2196f3;
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
    text-align: center;
}

.verify-code-box h3 {
    font-size: 18px;
    color: #1976d2;
    margin-bottom: 12px;
}

.verify-code {
    font-size: 32px;
    font-weight: 700;
    color: #1976d2;
    letter-spacing: 4px;
    padding: 16px;
    background: white;
    border-radius: 8px;
    margin: 16px 0;
    font-family: monospace;
    border: 2px solid #2196f3;
}

.verify-instructions {
    background: #fff3e0;
    border: 2px solid #ff9800;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.verify-instructions h4 {
    color: #e65100;
    font-size: 16px;
    margin-bottom: 12px;
    font-weight: 700;
}

.verify-instructions ol {
    color: #2c3e50;
    padding-left: 20px;
    line-height: 1.8;
}

.verify-instructions li {
    margin-bottom: 8px;
}

/* キャスト承認状態確認ページ - 白系 */
.status-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.status-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 48px 40px;
    max-width: 600px;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.status-icon {
    font-size: 64px;
    margin-bottom: 24px;
}

.status-icon.pending {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

.status-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #2c3e50;
}

.status-title.pending { color: #ff9800; }
.status-title.rejected { color: #f44336; }

.status-message {
    color: #2c3e50;
    line-height: 1.8;
    margin-bottom: 24px;
    font-size: 16px;
}

.info-box {
    background: #e3f2fd;
    border: 2px solid #2196f3;
    border-radius: 12px;
    padding: 24px;
    margin: 32px 0;
    text-align: left;
}

.info-box h3 {
    color: #1976d2;
    font-size: 16px;
    margin-bottom: 12px;
    font-weight: 700;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #666;
}

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

.info-label {
    color: #eee;
    font-size: 14px;
}

.info-value {
    color: #eee;
    font-weight: 600;
    font-size: 14px;
}

.info-item2 {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #999;
}

.info-item2:last-child {
    border-bottom: none;
}

.info-label2 {
    color: #666;
    font-size: 14px;
}

.info-value2 {
    color: #666;
    font-weight: 600;
    font-size: 14px;
}

.action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    flex-wrap: wrap;
    justify-content: center;
}

.verify-code-display {
    background: white;
    border: 2px solid #2196f3;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
    font-family: monospace;
    font-size: 24px;
    letter-spacing: 4px;
    color: #1976d2;
    font-weight: 700;
}

.help-text {
    color: #6c757d;
    font-size: 13px;
    margin-top: 8px;
}

/* ログアウトボタンなど */
.btn-secondary {
    display: inline-block;
    background: #6c757d;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* ========================================
   モバイルメニュー（共通）
======================================== */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    background: #1d9bf0;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(29, 155, 240, 0.4);
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    margin: 5px auto;
    transition: 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
}

.overlay.active {
    display: block;
}

/* ========================================
   レスポンシブ
======================================== */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }
    
    .main-content {
        margin-left: 200px;
        padding: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .sidebar {
        position: fixed;
        left: -260px;
        z-index: 1000;
        transition: left 0.3s;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .register-container {
        padding: 20px 15px;
    }
    
    .register-card {
        padding: 24px 20px;
    }
    
    .register-header h1 {
        font-size: 24px;
    }

    .status-container {
        padding: 40px 10px;
    }

    .status-card {
        padding: 48px 20px;
    }
}

/* ============================================
   投稿リスト（キャストダッシュボード用）
   ============================================ */
   .blog-item-wrapper {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.blog-item-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.blog-item-thumbnail-empty {
    width: 80px;
    height: 80px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 32px;
}

.blog-item-content {
    flex: 1;
    min-width: 0;
}

/* スマホ対応 */
@media (max-width: 640px) {
    .blog-item-wrapper {
        flex-direction: column;
    }
    
    .blog-item-thumbnail,
    .blog-item-thumbnail-empty {
        width: 100%;
        height: 180px;
    }
}