frontend_nyla/src/components/Speech/SpeechInfo.module.css

283 lines
4.5 KiB
CSS

.container {
margin: 0 auto;
text-align: center;
width: 100%;
margin: 0;
height: 100%;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.content {
flex: 1;
width: 100%;
margin: 0;
display: flex;
flex-direction: column;
justify-content: space-between;
min-height: 0;
}
.features {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1rem;
margin-bottom: 1rem;
flex: 1;
min-height: 0;
}
.feature {
padding: 1rem;
border-radius: 20px;
background: var(--color-bg);
border: 1px solid var(--color-secondary);
transition: all 0.3s ease;
color: var(--color-text);
position: relative;
overflow: hidden;
min-height: 160px;
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
}
.feature::before {
content: '';
position: absolute;
bottom: 0;
right: 0;
width: 60px;
height: 60px;
background: linear-gradient(135deg, var(--color-secondary), transparent 50%);
opacity: 0.1;
border-radius: 50% 0 0 0;
}
.feature:hover {
transform: translateY(-8px);
box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
background: var(--color-secondary);
color: white;
}
.feature:hover::before {
opacity: 0.2;
}
.featureIconContainer {
width: 50px;
height: 50px;
border-radius: 50%;
background: var(--feature-color, #ff4757);
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 0.75rem;
transition: all 0.3s ease;
}
.feature:hover .featureIconContainer {
background: white;
transform: scale(1.1);
}
.featureAcronym {
font-size: 1.2rem;
font-weight: bold;
color: white;
letter-spacing: 1px;
}
.feature:hover .featureAcronym {
color: var(--feature-color, #ff4757);
}
.featureTitle {
font-size: 1rem;
font-weight: bold;
margin: 0 0 0.5rem 0;
color: var(--color-text);
transition: color 0.3s ease;
}
.feature:hover .featureTitle {
color: white;
}
.featureDescription {
color: var(--color-text-secondary);
margin: 0;
line-height: 1.3;
font-size: 0.8rem;
transition: color 0.3s ease;
flex-grow: 1;
display: flex;
align-items: center;
}
.feature:hover .featureDescription {
color: white;
}
.partnerInfo {
background: var(--color-bg);
padding: 1rem;
border-radius: 20px;
border: 1px solid var(--color-secondary);
text-align: left;
margin-bottom: 0.5rem;
flex-shrink: 0;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.partnerInfo h2 {
font-size: 1.1rem;
font-weight: bold;
color: var(--color-secondary);
margin: 0 0 0.75rem 0;
text-align: center;
}
.introText {
color: var(--color-text);
line-height: 1.4;
margin-bottom: 1rem;
font-size: 0.85rem;
text-align: center;
font-style: italic;
}
.featureSection {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 0.75rem;
margin-bottom: 1rem;
}
.featureItem {
background: var(--color-secondary);
padding: 0.75rem;
border-radius: 10px;
color: white;
}
.featureItem h3 {
font-size: 0.8rem;
font-weight: bold;
margin: 0 0 0.4rem 0;
color: white;
}
.featureItem p {
font-size: 0.7rem;
line-height: 1.3;
margin: 0;
color: rgba(255, 255, 255, 0.9);
}
.partnerLink {
display: flex;
align-items: center;
gap: 0.5rem;
}
.linkIcon {
color: var(--color-secondary);
}
.partnerLink a {
color: var(--color-secondary);
text-decoration: none;
font-weight: 500;
transition: color 0.2s ease;
}
.partnerLink a:hover {
color: var(--primary-hover, #0056b3);
text-decoration: underline;
}
@media (max-width: 1024px) {
.features {
grid-template-columns: repeat(2, 1fr);
gap: 0.75rem;
}
.feature {
min-height: 140px;
padding: 0.75rem;
}
}
@media (max-width: 768px) {
.container {
padding: 0.5rem;
}
.features {
grid-template-columns: 1fr;
gap: 0.75rem;
}
.feature {
padding: 0.75rem;
min-height: 120px;
}
.featureIconContainer {
width: 40px;
height: 40px;
}
.featureAcronym {
font-size: 1rem;
}
.featureTitle {
font-size: 0.9rem;
}
.featureDescription {
font-size: 0.75rem;
}
.partnerInfo {
padding: 0.75rem;
margin-bottom: 0.5rem;
}
.partnerInfo h2 {
font-size: 1rem;
}
.introText {
font-size: 0.8rem;
margin-bottom: 0.75rem;
}
.featureSection {
grid-template-columns: 1fr;
gap: 0.5rem;
margin-bottom: 0.75rem;
}
.featureItem {
padding: 0.5rem;
}
.featureItem h3 {
font-size: 0.75rem;
}
.featureItem p {
font-size: 0.65rem;
}
}