/*
 * STEMpie - Square Page Styles
 * Square page specific styles
 * Created: 2024
 */

/* CSS Variables */
:root {
    --primary-color: #5e35b1;
    --secondary-color: #3949ab;
    --accent-color: #7c4dff;
    --light-color: #e8eaf6;
    --dark-color: #1a237e;
    --success-color: #43a047;
    --warning-color: #ffb300;
}

/* Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Navbar Styles */
.navbar-brand {
    font-weight: 700;
    font-size: 2.25rem;
    position: relative;
}

@media (min-width: 768px) {
    .navbar-brand {
        font-size: 2.7rem;
    }
}

.navbar-brand span {
    color: var(--accent-color);
}

.logo-pi {
    color: white !important;
    font-size: 1.2rem;
    font-weight: bold;
    font-family: 'Arial Unicode MS', 'Lucida Sans Unicode', 'Times New Roman', serif;
    position: absolute;
    top: 0.1rem;
    right: -0.8rem;
    line-height: 1;
}

/* Footer Styles */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 2rem 0 1rem 0;
}

@media (min-width: 768px) {
    .footer {
        padding: 3rem 0;
    }
}

/* Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Mobile Optimization */
.mobile-padding {
    padding-left: 15px;
    padding-right: 15px;
}

@media (min-width: 768px) {
    .mobile-padding {
        padding-left: 0;
        padding-right: 0;
    }
}

/* Square Page Specific Styles */
.square-content {
    min-height: 400px;
}

.square-icon {
    color: var(--primary-color);
    opacity: 0.6;
}

/* 广场头部样式 */
.square-hero {
    background: linear-gradient(135deg, rgba(94, 53, 177, 0.05) 0%, rgba(57, 73, 171, 0.05) 100%);
    border-radius: 20px;
    padding: 3rem 2rem;
    border: 1px solid rgba(94, 53, 177, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.square-hero h1 {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.square-hero .badge {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.square-hero .badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .square-hero {
        padding: 2rem 1rem;
    }
    
    .square-hero h1 {
        font-size: 2.5rem;
    }
    
    .square-hero .badge {
        font-size: 0.875rem !important;
        padding: 0.5rem 1rem !important;
    }
}

/* STEM秀模块样式 */
.stem-show-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 15px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.stem-show-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.stem-show-card .achievement-badge {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.stem-featured-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border-radius: 12px;
    border-left: 4px solid #4CAF50;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.stem-featured-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.stem-featured-badge {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(45deg, #4CAF50, #2E7D32);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

/* STEM秀响应式调整 */
@media (max-width: 768px) {
    .stem-show-card .achievement-badge {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .stem-featured-badge {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Responsive Design */
@media (max-width: 767.98px) {
    .square-content {
        min-height: 300px;
    }
}

/* 英文秀模块样式 */
.english-show-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 15px;
    overflow: hidden;
}

.english-show-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.english-show-card .achievement-badge {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.featured-content-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border-radius: 12px;
    border-left: 4px solid #5e35b1;
}

.featured-content-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.featured-badge {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .english-show-card .achievement-badge {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .featured-badge {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
} 