﻿/* =========================
   = .hero-section 공통     =
   ========================= */
.hero-section {
    background: linear-gradient(135deg, #0d6efd 0%, #0dcaf0 100%);
    color: white;
    padding: 1rem 0;
    margin-bottom: 1rem;
}


/* =========================
   =      index.php CSS     =
   ========================= */
.feature-card {
    transition: transform 0.3s ease;
    height: 100%;
}
.feature-card:hover {
    transform: translateY(-5px);
}
.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #0d6efd;
}
.group-card {
    transition: transform 0.2s;
}
.group-card:hover {
    transform: translateY(-5px);
}
.group-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 3rem;  /* 2줄 높이 확보 */
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* =========================
   =   join_group.php CSS   =
   ========================= */
.info-card {
    border: none;
    box-shadow: 0 0 20px rgba(0,0,0,0.08);
    border-radius: 15px;
    margin-bottom: 2rem;
}
.member-list::-webkit-scrollbar {
    width: 6px;
}
.member-list::-webkit-scrollbar-thumb {
    background-color: #dee2e6;
    border-radius: 3px;
}
.member-item {
    transition: transform 0.2s;
}
.member-item:hover {
    transform: translateX(5px);
}



/* =========================
   =   how_to_use.php CSS   =
   ========================= */

.steps-container {
    padding: 40px 0;
}

.step-item {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 40px;
    position: relative;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.step-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 20px solid #e9ecef;
}

.step-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #0d6efd;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.step-icon i {
    color: white;
    font-size: 28px;
}

.step-content {
    flex-grow: 1;
}

.step-number {
    background: #f8f9fa;
    color: #0d6efd;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    margin-left: 15px;
    border: 2px solid #0d6efd;
}

.step-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #333;
}

.step-description {
    color: #666;
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 40px;
    padding: 20px 0;
}

.action-buttons .btn {
    padding: 12px 30px;
    font-weight: 500;
    min-width: 160px;
}

@media (max-width: 768px) {
    .step-item {
        flex-direction: column;
        text-align: center;
        padding: 25px 15px;
    }
    
    .step-icon {
        margin: 0 0 15px 0;
    }
    
    .step-number {
        margin: 15px auto 0;
    }
}






/* =========================
   =   create_group.php CSS =
   ========================= */
.form-card {
    border: none;
    box-shadow: 0 0 20px rgba(0,0,0,0.08);
    border-radius: 15px;
}


/* =========================
   =    alert 관련      =
   ========================= */
.alert {
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 15px 20px;
}
.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}
.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}
.alert-info {
    background-color: #cce5ff;
    border-color: #b8daff;
    color: #004085;
}

/* =========================
   =   footer 공통파일      =
   ========================= */
footer {
    background-color: #1a1a1a;
}

footer h4 {
    font-weight: 600;
    margin-bottom: 1.5rem;
}

footer .social-links a {
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

footer .social-links a:hover {
    color: #dc3545 !important;
}

footer ul li a {
    transition: color 0.3s ease;
}

footer ul li a:hover {
    color: #dc3545 !important;
}

footer .list-unstyled li {
    color: #ffffff;
    opacity: 0.8;
}

footer .list-unstyled li:hover {
    opacity: 1;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}