/* 
    portal.css - らんなび ポータル共通デザインシステム 
    Aesthetic: Modern, Premium, Dark Navy/Gold
*/

:root {
    /* Base Colors */
    --portal-bg: #0f172a;
    --text-primary: #f1f5f9;
    --text-muted: #94a3b8;
    
    /* Design System Tokens */
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.1);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    
    /* Accent Colors */
    --accent-blue: #3b82f6;
    --accent-green: #10b981;
    --accent-gold: #d4af37;
    --accent-rose: #f43f5e;
    --accent-purple: #a855f7;
    --accent-amber: #f59e0b;
}

/* Base Card Style */
.portal-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.portal-card.hover-effect:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

/* Section Labels */
.section-label {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-family: 'Outfit', 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.section-label::before,
.section-label::after {
    content: '';
    height: 1px;
    width: 30px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2));
}
.section-label::after {
    background: linear-gradient(to left, transparent, rgba(255, 255, 255, 0.2));
}

/* Layout Utilities */
.portal-section {
    margin-bottom: 4rem;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

.portal-section-narrow {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Latest Article Card Enhancements */
.latest-article-card {
    position: relative;
    padding-top: 3.5rem !important;
    text-align: center;
    border-color: rgba(212, 175, 55, 0.3) !important;
}

.article-no-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 7rem;
    font-weight: 950;
    color: rgba(255, 255, 255, 0.02);
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
    font-family: 'Outfit', sans-serif;
}

.article-number {
    position: relative;
    z-index: 1;
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--accent-gold);
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
    font-family: 'Outfit', sans-serif;
}

.article-title-row {
    position: relative;
    z-index: 1;
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 1rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Main Grid Items */
.service-item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
}

.sub-service-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 1.2rem !important;
}

.sub-service-card .icon-box {
    font-size: 1.8rem;
    width: 45px;
    text-align: center;
    flex-shrink: 0;
}

.sub-service-card .title-text {
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 2px;
}

.sub-service-card .desc-text {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* Navigation Banner */
.nav-banner-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(0, 0, 0, 0.4)) !important;
    border: 2px solid var(--accent-blue) !important;
    padding: 2.5rem !important;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.nav-banner-label {
    position: absolute;
    top: 15px;
    left: 20px;
    color: var(--accent-blue);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 2px;
    opacity: 0.8;
}

/* History Section */
.history-section {
    margin-top: 4rem;
    padding: 2.5rem;
    background: rgba(30, 41, 59, 0.3);
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.history-title {
    color: var(--accent-gold);
    font-size: 1.4rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.history-text {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.8;
    text-align: left;
}

/* Responsive Adjustments */
@media (max-width: 480px) {
    .portal-section { margin-bottom: 3rem; }
    .portal-card { padding: 1.2rem; }
    .nav-banner-card { padding: 1.8rem !important; }
    .article-number { font-size: 2.8rem; }
    .article-no-label { font-size: 4rem; }
    .history-section { padding: 1.5rem; border-radius: 24px; }
}

@media (max-width: 320px) {
    .portal-card { padding: 1rem; border-radius: 16px; }
    .section-label { font-size: 0.75rem; letter-spacing: 0.15em; }
    .article-number { font-size: 2.2rem; }
    .sub-service-card { padding: 0.8rem !important; gap: 10px; }
}

/* Animations */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
/* Community & BBS Styles */
.active-game-banner .portal-card {
    background: linear-gradient(135deg, var(--accent-green), #059669) !important;
    border: none !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 1rem 1.2rem !important;
}

.latest-thread-card {
    border-color: rgba(212, 175, 55, 0.25) !important;
    padding: 1.2rem !important;
}

.user-mini-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    object-fit: cover;
}

/* Widgets */
.stamp-widget {
    border-color: rgba(59, 130, 246, 0.3) !important;
    padding: 1.2rem !important;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.search-form-portal {
    display: flex;
    align-items: center;
    border-radius: 50px !important;
    padding: 6px 12px !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.search-input-portal {
    background: transparent;
    border: none;
    color: #fff;
    padding: 8px 15px;
    width: 100%;
    font-size: 1rem;
    outline: none;
}

/* Update History */
.update-toggle-btn {
    width: 100%;
    background: rgba(59, 130, 246, 0.05) !important;
    border-color: rgba(59, 130, 246, 0.2) !important;
    padding: 0.8rem !important;
    color: var(--accent-blue) !important;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.update-history-container {
    background: rgba(59, 130, 246, 0.03) !important;
    border-color: rgba(59, 130, 246, 0.15) !important;
    border-top: none !important;
    border-radius: 0 0 16px 16px !important;
    padding: 1rem !important;
    color: #cbd5e1;
    text-align: left;
    font-size: 0.85rem;
}

/* Luxurious Search Hero */
.lux-search-hero {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(0, 0, 0, 0.4)) !important;
    border: 2px solid var(--accent-amber) !important;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 2.2rem 2rem !important;
    box-shadow: 0 10px 40px rgba(245, 158, 11, 0.2) !important;
}

.lux-search-hero .title {
    color: #fff !important;
    font-size: 1.5rem !important;
    font-weight: 950 !important;
    margin-bottom: 4px;
}

.lux-search-hero .subtitle {
    color: var(--accent-amber) !important;
    opacity: 0.9 !important;
    font-weight: 700 !important;
}

.lux-search-hero::after {
    background: linear-gradient(to right, transparent, rgba(245, 158, 11, 0.2), transparent) !important;
}

/* Buttons */
.btn-portal-glow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 30px;
    background: var(--accent-blue);
    color: #fff;
    border-radius: 50px;
    font-weight: 900;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    transition: all 0.3s;
}

.btn-portal-glow:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
    filter: brightness(1.1);
}

.animate-fadeIn {
    animation: fadeIn 0.8s ease forwards;
}
