/* ===== Homepage: Notification Section ===== */
.notice h1 {
    margin-top: 3em;
    text-align: center;
    font-size: 2em;
    color: #e0e0e8;
    margin-bottom: 0.5em;
    letter-spacing: 0.1em;
}

.notices {
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    padding: 0 20px;
}

a.notice-content {
    position: relative;
    min-width: 240px;
    overflow: hidden;
    padding: 0;
}

.notices a {
    width: 28%;
    text-decoration: none;
    transition: all 0.4s ease;
}

.notices a:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(139, 0, 0, 0.2);
}

.notices img {
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-bottom: 0;
    object-fit: cover;
    border-radius: 16px 16px 0 0;
}

.notices h2 {
    padding: 14px 16px;
    margin-top: 0;
    text-align: center;
    background: transparent;
    color: #d0d0d8;
    font-size: min(max(1.2vw, 12px), 16px);
    font-weight: 400;
}

.notices h3 {
    position: absolute;
    top: 10px;
    left: 12px;
    background: rgba(220, 20, 60, 0.1);
    border: 1px solid rgba(220, 20, 60, 0.4);
    color: #ff4d6d;
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 500;
    border-radius: 6px;
    letter-spacing: 0.05em;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.notices a:hover h3 {
    background: rgba(220, 20, 60, 0.2);
    border-color: rgba(220, 20, 60, 0.8);
    box-shadow: 0 0 10px rgba(220, 20, 60, 0.2);
}

/* ===== Homepage: Index Section (Twitter + Creations) ===== */
.index {
    width: 100%;
    margin-top: 60px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    padding: 0 20px;
    box-sizing: border-box;
}

.twitter {
    width: 40%;
    margin-bottom: 30px;
}

/* ===== Twitter Card ===== */
.twitter-card {
    padding: 24px;
    border-radius: 20px;
    text-align: left;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.twitter-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.twitter-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.twitter-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
    background: var(--bg-secondary);
}

.twitter-info {
    display: flex;
    flex-direction: column;
}

.twitter-info h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
    line-height: 1.2;
}

.twitter-handle {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.twitter-brand-icon {
    font-size: 1.4rem;
    color: var(--text-primary);
    opacity: 0.8;
}

.twitter-bio {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0 0 24px 0;
}

.twitter-follow-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--accent-dark), var(--accent));
    color: white !important;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.2);
}

.twitter-follow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.4);
}

.tool {
    width: 40%;
    display: block;
}

.tools {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.tool a {
    width: 45%;
    max-width: 220px;
    display: block;
    text-decoration: none;
    text-align: center;
    transition: all 0.4s ease;
    color: rgba(200, 200, 210, 0.7);
    padding: 20px 16px;
}

.tool a:hover {
    transform: translateY(-5px);
    color: #e0e0e8;
}

a.padding h3 {
    padding: 0px 15.5px;
}

.tool h1 {
    margin-top: 5px;
    color: #e0e0e8;
    text-align: center;
    font-size: 1.8em;
    letter-spacing: 0.1em;
    margin-bottom: 0.5em;
}

.tool img {
    width: 80%;
    margin: 0 auto;
    display: block;
    transition: all 0.4s ease;
    border-radius: 12px;
}

.tool a:hover img {
    filter: drop-shadow(0 0 12px rgba(220, 20, 60, 0.35));
}

.tool h3 {
    font-size: 0.95em;
    font-weight: 400;
    margin-top: 12px;
    letter-spacing: 0.05em;
}

.tool h7 {
    margin-top: 24px;
    display: block;
    margin-bottom: 60px;
    color: rgba(200, 200, 210, 0.35);
    font-size: 12px;
    text-align: center;
    line-height: 1.6;
}

/* ===== Responsive ===== */
@media (max-width: 750px) {
    .twitter {
        width: 85%;
    }

    .tool {
        width: 85%;
    }
}

@media (min-width: 750px) {
    .tool {
        margin-left: 3%;
    }
}

@media (max-width: 540px) {
    .notices a {
        width: 85%;
    }

    .notices h2 {
        font-size: min(4vw, 16px);
    }
}