/*
 * 파일명: roulette.css
 * 위치: /assets/css/
 * 기능: 무료 룰렛 돌리기 웹툴 스타일시트
 * 작성일: 2025-08-01
 */

/* ===================================
 * 전역 스타일 설정
 * ===================================
 */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    min-height: 100vh;
}

.container-fluid {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    margin: 10px;
    min-height: calc(100vh - 20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ===================================
 * 공통 버튼 스타일
 * ===================================
 */
.btn {
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn:hover:not(:disabled) {
    transform: translateY(-2px);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ===================================
 * 헤더 영역 스타일
 * ===================================
 */
h1 {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: -1px;
    font-size: 1.8rem;
}

.btn-outline-secondary,
.btn-outline-primary {
    border: 2px solid #e9ecef;
    color: #495057;
    background: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.btn-outline-secondary:hover,
.btn-outline-primary:hover {
    background: #667eea;
    border-color: #667eea;
    color: #fff;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* ===================================
 * 룰렛 메인 영역 스타일
 * ===================================
 */
.roulette-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    padding: 20px;
}

.roulette-wrapper {
    position: relative;
    width: 400px;
    height: 400px;
    margin-bottom: 30px;
}

/* 룰렛 포인터 */
.roulette-pointer {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    color: #dc3545;
    font-size: 2rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* 룰렛 휠 */
.roulette-wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 0 0 8px #ffffff,
        0 0 0 12px #e9ecef,
        0 20px 40px rgba(0, 0, 0, 0.2);
    transition: transform 4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* 룰렛 섹션 */
.roulette-section {
    position: absolute;
    width: 50%;
    height: 50%;
    transform-origin: 100% 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    clip-path: polygon(100% 100%, 0% 100%, 50% 0%);
    overflow: hidden;
}

.roulette-section:hover {
    filter: brightness(1.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.roulette-section span {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    text-align: center;
    padding: 5px 8px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    max-width: 80px;
    word-break: break-word;
    line-height: 1.2;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 룰렛 중앙 버튼 */
.roulette-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 15;
}

.spin-button {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    box-shadow: 
        0 8px 25px rgba(40, 167, 69, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 4px solid #ffffff;
}

.spin-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #218838, #1cc88a);
    box-shadow: 
        0 12px 35px rgba(40, 167, 69, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    /* transform 제거 - 움직임 없음 */
}

.spin-button:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: translate(-50%, -50%) scale(1) !important;
}

.spin-button i {
    font-size: 1.5rem;
}

.spin-button span {
    font-size: 0.9rem;
}

/* ===================================
 * 결과 표시 영역 스타일
 * ===================================
 */
.result-display {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.result-content {
    text-align: center;
}

.result-icon {
    font-size: 3rem;
    margin-bottom: 10px;
    animation: bounce 0.6s ease-in-out;
}

.result-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #495057;
    margin-bottom: 5px;
}

.result-winner {
    background: linear-gradient(135deg, #28a745, #20c997);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

/* ===================================
 * 컨트롤 패널 스타일
 * ===================================
 */
.control-panel {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 20px;
    margin: 20px 10px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.3);
    height: fit-content;
}

.panel-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.panel-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.panel-title {
    color: #495057;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

/* ===================================
 * 템플릿 버튼 스타일
 * ===================================
 */
.template-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 5px;
}

.btn-template {
    background: #ffffff;
    border: 2px solid #e9ecef;
    color: #495057;
    font-size: 0.8rem;
    padding: 8px 10px;
    text-align: left;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-template:hover {
    background: #667eea;
    border-color: #667eea;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-template i {
    flex-shrink: 0;
}

/* ===================================
 * 옵션 관리 스타일
 * ===================================
 */
.add-option-form .input-group {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    overflow: hidden;
}

.add-option-form .form-control {
    border: none;
    padding: 12px 15px;
    font-weight: 500;
}

.add-option-form .form-control:focus {
    box-shadow: none;
    border-color: transparent;
}

.add-option-form .btn {
    border: none;
    padding: 12px 15px;
}

/* 옵션 리스트 */
.options-list {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.option-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.option-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.option-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 10px;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.option-text {
    flex: 1;
    font-weight: 600;
    color: #495057;
}

.option-actions {
    display: flex;
    gap: 5px;
}

.btn-option {
    width: 30px;
    height: 30px;
    padding: 0;
    font-size: 0.8rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 옵션 컨트롤 버튼 */
.option-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* ===================================
 * 히스토리 영역 스타일
 * ===================================
 */
.history-list {
    max-height: 150px;
    overflow-y: auto;
}

.no-history {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 20px;
}

.no-history i {
    font-size: 1.5rem;
    margin-bottom: 10px;
    display: block;
}

.history-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    margin-bottom: 5px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    font-size: 0.9rem;
}

.history-number {
    background: #667eea;
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    margin-right: 10px;
}

.history-result {
    flex: 1;
    font-weight: 600;
    color: #495057;
}

.history-time {
    font-size: 0.75rem;
    color: #6c757d;
}

/* ===================================
 * 전체화면 모드 스타일
 * ===================================
 */
.fullscreen-mode {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.fullscreen-roulette-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.fullscreen-roulette-wrapper {
    position: relative;
    width: 500px;
    height: 500px;
    margin-bottom: 40px;
}

.fullscreen-roulette-pointer {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    color: #ffffff;
    font-size: 2.5rem;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.5));
}

.fullscreen-roulette-wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 0 0 10px rgba(255, 255, 255, 0.2),
        0 0 0 15px rgba(255, 255, 255, 0.1),
        0 25px 50px rgba(0, 0, 0, 0.3);
    transition: transform 4s cubic-bezier(0.23, 1, 0.32, 1);
}

.fullscreen-roulette-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 15;
}

.fullscreen-spin-button {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-shadow: 
        0 10px 30px rgba(40, 167, 69, 0.5),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 5px solid rgba(255, 255, 255, 0.3);
}

.fullscreen-spin-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #218838, #1cc88a);
    box-shadow: 
        0 15px 40px rgba(40, 167, 69, 0.6),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
    /* transform 제거 - 움직임 없음 */
}

.fullscreen-spin-button i {
    font-size: 1.8rem;
}

.fullscreen-spin-button span {
    font-size: 1rem;
}

/* 전체화면 결과 표시 */
.fullscreen-result-display {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 400px;
}

.fullscreen-result-content {
    text-align: center;
}

.fullscreen-result-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    animation: bounce 0.6s ease-in-out;
}

.fullscreen-result-text {
    font-size: 2rem;
    font-weight: 700;
    color: #495057;
}

/* ===================================
 * 테마 선택 모달 스타일
 * ===================================
 */
.theme-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.theme-option {
    text-align: center;
    cursor: pointer;
    padding: 15px;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.theme-option:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: #667eea;
    transform: translateY(-3px);
}

.theme-option.active {
    background: rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.theme-preview {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 10px;
    position: relative;
    overflow: hidden;
}

/* 테마별 프리뷰 색상 */
.theme-default {
    background: conic-gradient(#ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57, #ff9ff3);
}

.theme-neon {
    background: conic-gradient(#ff006e, #00f5ff, #39ff14, #ff4081, #ffea00, #b967db);
}

.theme-pastel {
    background: conic-gradient(#ffb3ba, #bae1ff, #baffc9, #ffffba, #ffdfba, #e0bbe4);
}

.theme-dark {
    background: conic-gradient(#2c3e50, #34495e, #7f8c8d, #95a5a6, #bdc3c7, #ecf0f1);
}

.theme-rainbow {
    background: conic-gradient(#ff0000, #ff8000, #ffff00, #80ff00, #00ff00, #00ff80, #00ffff, #0080ff, #0000ff, #8000ff, #ff00ff, #ff0080);
}

.theme-minimal {
    background: conic-gradient(#ffffff, #f8f9fa, #e9ecef, #dee2e6, #ced4da, #adb5bd);
}

.theme-option span {
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
}

/* ===================================
 * 애니메이션 효과
 * ===================================
 */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        transform: translate3d(0, -15px, 0);
    }
    70% {
        transform: translate3d(0, -8px, 0);
    }
    90% {
        transform: translate3d(0, -3px, 0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.spinning {
    animation: spin 0.1s linear infinite;
}

.pulse {
    animation: pulse 0.5s ease-in-out infinite;
}

/* ===================================
 * 반응형 디자인 - 태블릿
 * ===================================
 */
@media (max-width: 991px) {
    .roulette-wrapper {
        width: 350px;
        height: 350px;
    }
    
    .fullscreen-roulette-wrapper {
        width: 450px;
        height: 450px;
    }
    
    .control-panel {
        margin-top: 0;
    }
    
    h1 {
        font-size: 1.5rem;
    }
}

/* ===================================
 * 반응형 디자인 - 모바일
 * ===================================
 */
@media (max-width: 768px) {
    .container-fluid {
        margin: 5px;
        border-radius: 15px;
    }
    
    h1 {
        font-size: 1.3rem;
    }
    
    .roulette-wrapper {
        width: 300px;
        height: 300px;
    }
    
    .spin-button {
        width: 80px;
        height: 80px;
        font-size: 0.9rem;
    }
    
    .spin-button i {
        font-size: 1.2rem;
    }
    
    .spin-button span {
        font-size: 0.8rem;
    }
    
    .roulette-section {
        font-size: 0.85rem;
    }
    
    .roulette-section span {
        max-width: 60px;
        padding: 3px;
    }
    
    .result-display {
        padding: 20px;
        min-height: 100px;
    }
    
    .result-icon {
        font-size: 2.5rem;
    }
    
    .result-text {
        font-size: 1.2rem;
    }
    
    .control-panel {
        padding: 15px;
        margin: 10px 5px;
    }
    
    .panel-title {
        font-size: 1rem;
    }
    
    .template-buttons {
        grid-template-columns: 1fr;
        gap: 4px;
        max-height: 250px;
    }
    
    .btn-template {
        font-size: 0.75rem;
        padding: 6px 8px;
    }
    
    /* 전체화면 모바일 최적화 */
    .fullscreen-roulette-wrapper {
        width: 320px;
        height: 320px;
    }
    
    .fullscreen-spin-button {
        width: 100px;
        height: 100px;
    }
    
    .fullscreen-result-display {
        padding: 30px;
        min-width: 300px;
    }
    
    .fullscreen-result-icon {
        font-size: 3rem;
    }
    
    .fullscreen-result-text {
        font-size: 1.5rem;
    }
    
    .theme-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .theme-preview {
        width: 50px;
        height: 50px;
    }
}

/* ===================================
 * 반응형 디자인 - 초소형 모바일
 * ===================================
 */
@media (max-width: 480px) {
    .roulette-wrapper {
        width: 280px;
        height: 280px;
    }
    
    .spin-button {
        width: 70px;
        height: 70px;
        font-size: 0.8rem;
    }
    
    .roulette-section {
        font-size: 0.75rem;
    }
    
    .roulette-section span {
        max-width: 50px;
        padding: 2px;
    }
    
    .control-panel {
        padding: 12px;
    }
	
	.template-buttons {
        max-height: 200px;
    }
    
    .btn-template {
        font-size: 0.7rem;
        padding: 5px 6px;
    }
    
    .fullscreen-roulette-wrapper {
        width: 280px;
        height: 280px;
    }
    
    .fullscreen-spin-button {
        width: 80px;
        height: 80px;
        font-size: 1rem;
    }
    
    .fullscreen-result-display {
        padding: 20px;
        min-width: 250px;
    }
}

/* ===================================
 * 스크롤바 커스터마이징
 * ===================================
 */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a6fd8, #6a4190);
}


/* ===================================
 * 빈 룰렛 및 SVG 룰렛 스타일 (추가)
 * ===================================
 */

/* 빈 룰렛 스타일 */
.empty-wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 3px dashed #ced4da;
    color: #6c757d;
    font-weight: 600;
}

.empty-wheel:hover {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    border-color: #adb5bd;
}

/* SVG 룰렛 스타일 */
.roulette-wheel svg,
.fullscreen-roulette-wheel svg {
    border-radius: 50%;
    overflow: hidden;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}



/* ===================================
 * SVG 룰렛 호버 효과 개선
 * ===================================
 */
.roulette-path:hover {
    filter: brightness(1.2) saturate(1.3) !important;
    stroke-width: 3;
    stroke: rgba(255,255,255,0.6) !important;
}

.roulette-path {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 테마별 특수 효과 */
.roulette-path[data-theme="neon"]:hover {
    filter: brightness(1.3) saturate(1.5) drop-shadow(0 0 10px currentColor) !important;
}

.roulette-path[data-theme="minimal"]:hover {
    filter: brightness(0.9) saturate(0.8) !important;
}

.roulette-path[data-theme="dark"]:hover {
    filter: brightness(1.4) saturate(1.2) !important;
}


/* ===================================
 * SEO 컨텐츠 스타일
 * ===================================
 */
.seo-content {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    max-width: 1200px;
	padding: 40px;
    margin: 20px auto;  /* auto를 추가하여 좌우 가운데 정렬 */
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.content-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.content-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.section-title {
    color: #495057;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.content-text {
    color: #6c757d;
    line-height: 1.7;
    font-size: 1rem;
}

.content-text h3 {
    color: #495057;
    font-weight: 600;
    font-size: 1.2rem;
    margin-top: 25px;
    margin-bottom: 15px;
}

.content-text h4 {
    color: #495057;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.content-text p {
    margin-bottom: 15px;
}

.content-text strong {
    color: #495057;
    font-weight: 700;
}

.content-text em {
    color: #667eea;
    font-style: normal;
    font-weight: 600;
}

.content-text ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.content-text li {
    margin-bottom: 8px;
}

/* 장점 그리드 */
.advantage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.advantage-item {
    background: rgba(255, 255, 255, 0.7);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.advantage-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.advantage-item h4 {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.advantage-item p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* FAQ 스타일 */
.faq-container {
    margin-top: 20px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.faq-question {
    color: #495057;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
    padding: 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: #667eea;
}

.faq-answer {
    padding: 0 20px 20px 20px;
}

.faq-answer p {
    margin: 0;
    color: #6c757d;
    line-height: 1.6;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .seo-content {
        padding: 25px 20px;
        margin: 15px 0;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .content-text {
        font-size: 0.95rem;
    }
    
    .advantage-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .advantage-item {
        padding: 15px;
    }
    
    .faq-question {
        font-size: 1rem;
        padding: 15px;
    }
    
    .faq-answer {
        padding: 0 15px 15px 15px;
    }
}

@media (max-width: 480px) {
    .seo-content {
        padding: 20px 15px;
    }
    
    .section-title {
        font-size: 1.2rem;
        flex-direction: column;
        text-align: center;
    }
    
    .section-title i {
        margin-bottom: 5px;
        margin-right: 0 !important;
    }
    
    .content-text {
        font-size: 0.9rem;
    }
    
    .advantage-item h4 {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
    
    .advantage-item h4 i {
        margin-right: 0 !important;
    }
}


/* ===================================
 * 풋터 스타일
 * ===================================
 */
.footer-content {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
	max-width: 1200px;
    padding: 25px;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin: 20px auto;  /* auto를 추가하여 좌우 가운데 정렬 */
}

.footer-text {
    color: #495057;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 10px;
}

.footer-links {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

.footer-links span {
    display: inline-block;
}

.separator {
    margin: 0 10px;
    color: #adb5bd;
}

/* 반응형 풋터 */
@media (max-width: 768px) {
    .footer-content {
        padding: 20px 15px;
        margin: 0 5px 15px 5px;
    }
    
    .footer-text {
        font-size: 0.95rem;
    }
    
    .footer-links {
        font-size: 0.85rem;
    }
    
    .separator {
        margin: 0 8px;
    }
}

@media (max-width: 480px) {
    .footer-content {
        padding: 15px 10px;
    }
    
    .footer-text {
        font-size: 0.9rem;
    }
    
    .footer-links {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    .footer-links span {
        display: inline;
    }
    
    .separator {
        margin: 0 5px;
    }
}

/* ===================================
 * 광고 영역 스타일링
 * =================================== */
.webtools-ad {
    margin: 2rem 0;
    text-align: center;
    min-height: 250px;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 1rem;
    background: linear-gradient(135deg, #f9f9f9 0%, #f5f5f5 100%);
    border-radius: 12px;
    border: 1px solid #e9ecef;
}