/* Portal CSS - 朋義さん専用ページ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Hiragino Sans', 'Meiryo', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    color: #e4e4e4;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.8;
}

.update-info {
    font-size: 0.9rem;
    opacity: 0.6;
    margin-top: 10px;
}

.stats {
    display: flex;
    gap: 30px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #667eea;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Sections */
.section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.section h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: #fff;
}

.section h2 .icon {
    font-size: 1.5rem;
}

.section-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Subsection - 統合セクション内のサブカテゴリ */
.subsection {
    margin-bottom: 20px;
}

.subsection:last-child {
    margin-bottom: 0;
}

.subsection h3 {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.loading, .empty {
    text-align: center;
    opacity: 0.5;
    padding: 20px;
}

/* Message Cards */
.message-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px 20px;
    border-left: 4px solid #667eea;
}

.message-card.high {
    border-left-color: #f39c12;
}

.message-card.urgent {
    border-left-color: #e74c3c;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.message-type {
    font-size: 1.2rem;
}

.message-title {
    font-weight: bold;
    flex: 1;
}

.message-date {
    font-size: 0.85rem;
    opacity: 0.6;
}

.message-content {
    opacity: 0.9;
}

/* Creations Grid */
.creations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.creation-card {
    display: block;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.creation-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateY(-3px);
}

.creation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.creation-category {
    font-size: 1.5rem;
}

.creation-number {
    font-size: 0.85rem;
    opacity: 0.5;
}

.creation-title {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #fff;
}

.creation-description {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 10px;
}

.creation-date {
    font-size: 0.8rem;
    opacity: 0.5;
}

/* Request Cards */
.request-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px 20px;
    border-left: 4px solid #3498db;
}

.request-card.waiting {
    border-left-color: #f39c12;
}

.request-card.done {
    border-left-color: #2ecc71;
    opacity: 0.6;
}

.request-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.request-priority {
    font-size: 0.85rem;
    padding: 3px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
}

.request-priority.high {
    background: rgba(243, 156, 18, 0.2);
    color: #f39c12;
}

.request-status {
    font-size: 0.85rem;
    opacity: 0.7;
}

.request-title {
    font-size: 1rem;
    margin-bottom: 5px;
}

.request-description {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Recommendation Cards */
.recommendation-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.recommendation-card:hover {
    background: rgba(255, 255, 255, 0.1);
}

.recommendation-type {
    font-size: 2rem;
}

.recommendation-content h3 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.recommendation-content p {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Todo Cards */
.todo-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px 20px;
}

.todo-card.done {
    opacity: 0.5;
}

.todo-card.in_progress {
    border-left: 3px solid #3498db;
}

.todo-status {
    font-size: 1.3rem;
}

.todo-content h3 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.todo-content p {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Section Subtitle */
.section-subtitle {
    font-size: 0.9rem;
    opacity: 0.6;
    margin-top: -15px;
    margin-bottom: 15px;
}

/* Last Updated */
.last-updated {
    font-size: 0.8rem;
    opacity: 0.5;
    margin-bottom: 15px;
}

/* Recommendations For Tomo Cards (NEW) */
.recommendation-for-tomo-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid #e91e63;
    transition: all 0.3s ease;
}

.recommendation-for-tomo-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.rec-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.rec-type-icon {
    font-size: 1.5rem;
}

.rec-type-label {
    font-size: 0.85rem;
    background: rgba(233, 30, 99, 0.2);
    color: #e91e63;
    padding: 2px 10px;
    border-radius: 10px;
}

.rec-title {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 8px;
}

.rec-reason {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 10px;
}

.rec-link {
    font-size: 0.85rem;
    color: #e91e63;
    text-decoration: none;
}

.rec-link:hover {
    text-decoration: underline;
}

/* Event Cards (NEW) */
.events-section .section-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.event-card {
    display: flex;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid #00bcd4;
    transition: all 0.3s ease;
}

.event-card:hover {
    background: rgba(255, 255, 255, 0.08);
}

.event-info {
    flex: 1;
}

.event-description {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 10px;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.85rem;
    opacity: 0.7;
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    padding: 10px;
    background: rgba(0, 188, 212, 0.2);
    border-radius: 8px;
}

.event-month {
    font-size: 0.75rem;
    opacity: 0.8;
    text-transform: uppercase;
}

.event-day {
    font-size: 1.5rem;
    font-weight: bold;
    color: #00bcd4;
}

.event-details {
    flex: 1;
}

.event-title {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 5px;
}

.event-venue {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 5px;
}

.event-source {
    font-size: 0.8rem;
    opacity: 0.5;
}

.event-link {
    font-size: 0.85rem;
    color: #00bcd4;
    text-decoration: none;
}

.event-link:hover {
    text-decoration: underline;
}

/* Tech Article Cards (NEW) */
.tech-articles-section .section-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.tech-article-card {
    display: block;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    border-left: 4px solid #4caf50;
    transition: all 0.3s ease;
}

.tech-article-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.article-source {
    font-size: 0.75rem;
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    padding: 2px 10px;
    border-radius: 10px;
    display: inline-block;
    margin-bottom: 10px;
}

.article-title {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 8px;
}

.article-reason {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Question Cards (NEW) */
.question-card {
    display: flex;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid #ff9800;
    transition: all 0.3s ease;
}

.question-card:hover {
    background: rgba(255, 255, 255, 0.08);
}

.question-icon {
    font-size: 2rem;
    min-width: 40px;
}

.question-content {
    flex: 1;
}

.question-text {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 8px;
}

.question-context {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Footer */
.footer {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    padding: 20px;
}

.back-link {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.back-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
    }

    .stats {
        justify-content: center;
    }

    .header-content h1 {
        font-size: 2rem;
    }

    .creations-grid {
        grid-template-columns: 1fr;
    }

    .footer {
        flex-direction: column;
        align-items: center;
    }
}

/* Mini Blog */
.mini-blog-section {
    border-left: 3px solid #667eea;
}

.mini-blog-post {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 10px;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.mini-blog-post:hover {
    background: rgba(255, 255, 255, 0.06);
    border-left-color: #667eea;
}

.post-content {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 8px;
}

.post-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    opacity: 0.6;
}

.post-tags {
    color: #667eea;
}
