/* CAM Zodiac Calculator Styles */

/* Wrapper */
.cam-calculator-wrapper {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Header */
.cam-header {
    text-align: center;
    background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
    padding: 60px 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    color: white;
}

.cam-title {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.cam-subtitle {
    font-size: 18px;
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
}

/* Form Card */
.cam-form-card {
    background: white;
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.cam-form-title {
    color: #667eea;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.cam-form-desc {
    color: #718096;
    font-size: 14px;
    margin: 0 0 30px 0;
    background: #edf2f7;
    padding: 12px 16px;
    border-radius: 8px;
}

/* Form Groups */
.cam-form-group {
    margin-bottom: 24px;
}

.cam-form-group label {
    display: block;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    font-size: 14px;
}

.cam-form-group label .required {
    color: #e53e3e;
}

.cam-form-group input[type="date"],
.cam-form-group input[type="time"],
.cam-form-group select {
    width: 100%;
    padding: 14px 40px 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.5;
    transition: all 0.3s ease;
    box-sizing: border-box;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23718096' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.cam-form-group select {
    cursor: pointer;
    height: auto;
    min-height: 48px;
}

.cam-form-group input[type="date"],
.cam-form-group input[type="time"] {
    background-image: none;
    padding: 14px 16px;
}

/* Force English display for date/time inputs */
.cam-form-group input[type="date"]::-webkit-datetime-edit-text,
.cam-form-group input[type="date"]::-webkit-datetime-edit-month-field,
.cam-form-group input[type="date"]::-webkit-datetime-edit-day-field,
.cam-form-group input[type="date"]::-webkit-datetime-edit-year-field {
    text-transform: none;
}

.cam-form-group input[type="date"]::-webkit-calendar-picker-indicator,
.cam-form-group input[type="time"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
}

.cam-form-group input:focus,
.cam-form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.cam-help-text {
    display: block;
    color: #718096;
    font-size: 12px;
    margin-top: 6px;
}

.cam-checkbox {
    display: flex;
    align-items: center;
    margin-top: 10px;
    font-weight: 400;
    cursor: pointer;
}

.cam-checkbox input {
    margin-right: 8px;
    width: auto;
    cursor: pointer;
}

/* Submit Button */
.cam-submit-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
    color: white;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.cam-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.3);
}

.cam-submit-btn:active {
    transform: translateY(0);
}

.cam-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Result Section */
.cam-result-section {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Profile Card */
.cam-profile-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.cam-profile-header {
    text-align: center;
    margin-bottom: 30px;
}

.cam-code {
    font-size: 48px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 8px 0;
    letter-spacing: 2px;
}

.cam-symbol-title {
    font-size: 20px;
    color: #718096;
    margin: 0;
    font-weight: 400;
}

/* Details Grid */
.cam-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    row-gap: 30px;
}

.cam-detail-item {
    padding: 0;
}

@media (max-width: 768px) {
    .cam-details-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cam-detail-item {
        padding: 16px 0;
        border-bottom: 1px solid #e2e8f0;
    }
    
    .cam-detail-item:last-child {
        border-bottom: none;
    }
}

.cam-detail-label {
    font-size: 11px;
    font-weight: 700;
    color: #a0aec0;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.cam-detail-value {
    font-size: 16px;
    color: #2d3748;
    font-weight: 500;
}

.cam-elements {
    text-align: left;
    font-size: 16px;
}

.element-icon {
    font-size: 48px;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* 모바일 최적화 */
@media (max-width: 768px) {
    .cam-elements {
        font-size: 14px;
    }
    
    .element-icon {
        font-size: 32px;
    }
}

/* Banner */
.cam-banner-wrapper {
    margin-bottom: 20px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.cam-banner-image {
    width: 100%;
    height: auto;
    display: block;
}

/* CTA Button */
.cam-cta-btn {
    display: block;
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(135deg, #667eea 0%, #d4af37 100%);
    color: white;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 12px;
}

.cam-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
    color: white;
    text-decoration: none;
}

/* Special Event Banner */
.cam-event-banner {
    background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(30, 58, 138, 0.3);
    animation: pulseGlow 2s ease-in-out infinite;
}

.cam-event-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 8px 30px rgba(30, 58, 138, 0.3);
    }
    50% {
        box-shadow: 0 8px 40px rgba(15, 23, 42, 0.5);
    }
}

@keyframes shine {
    0% {
        left: -50%;
    }
    100% {
        left: 150%;
    }
}

.event-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.3);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 8px;
    animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.event-title {
    font-size: 22px;
    font-weight: 700;
    color: white;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.event-description {
    font-size: 16px;
    color: white;
    margin: 0;
    opacity: 0.95;
}

.event-description strong {
    font-size: 18px;
    font-weight: 700;
    text-decoration: underline;
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* View Full Profile Button */
.cam-view-full-btn {
    width: 100%;
    padding: 16px 24px;
    background: white;
    color: #667eea;
    font-size: 18px;
    font-weight: 600;
    border: 2px solid #667eea;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 12px;
}

.cam-view-full-btn:hover {
    background: #667eea;
    color: white;
}

/* Full Profile Section */
.cam-full-profile-section {
    margin-top: 30px;
    animation: fadeIn 0.5s ease;
}

/* 크롬 번역 대응: 모든 텍스트 색상 강제 */
.cam-full-profile-section * {
    color: inherit !important;
}

.cam-full-profile-section h1,
.cam-full-profile-section h2,
.cam-full-profile-section h3,
.cam-full-profile-section h4,
.cam-full-profile-section h5 {
    color: #1a202c !important;
}

.cam-full-profile-section p,
.cam-full-profile-section li,
.cam-full-profile-section div {
    color: #1a202c !important;
}

/* Sticky Navigation */
.cam-sticky-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: white;
    padding: 16px 0;
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-around;
    gap: 8px;
    overflow-x: auto;
}

.cam-sticky-nav .nav-item {
    padding: 10px 16px;
    color: #718096 !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cam-sticky-nav .nav-item:hover {
    color: #667eea !important;
    background: #f7fafc;
}

.cam-sticky-nav .nav-item.active {
    color: white !important;
    background: linear-gradient(135deg, #667eea 0%, #d4af37 100%);
}

/* Section Styles */
.cam-section {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    scroll-margin-top: 100px;
}

.cam-section-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a202c !important; /* 강제 진한 검정 */
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

.cam-section-content {
    color: #1a202c !important; /* 강제 진한 검정 */
    line-height: 1.8;
}

/* Essence */
.essence-title {
    font-size: 20px;
    font-weight: 600;
    color: #1e3a8a !important; /* 강제 남색 */
    margin: 0 0 12px 0;
}

.essence-description {
    font-size: 16px;
    color: #1a202c !important; /* 강제 진한 검정 */
    line-height: 1.8;
}

/* Strengths/Challenges Items */
.strength-item,
.challenge-item {
    background: #f7fafc;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 16px;
    border-left: 4px solid #667eea;
}

.challenge-item {
    border-left-color: #fc8181;
}

.strength-item h4,
.challenge-item h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1a202c !important; /* 강제 진한 검정 */
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.strength-item p,
.challenge-item p {
    font-size: 15px;
    color: #1a202c !important; /* 강제 진한 검정 */
    margin: 0;
    line-height: 1.6;
}

/* Love Section */
.love-dating-style {
    background: #fff5f7;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 4px solid #fc8181;
    color: #1a202c !important; /* 강제 진한 검정 */
    font-size: 15px;
    line-height: 1.6;
}

.subsection-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a202c !important; /* 강제 진한 검정 */
    margin: 20px 0 12px 0;
}

.look-for-item {
    background: #f7fafc;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 12px;
}

.look-for-item h5 {
    font-size: 16px;
    font-weight: 600;
    color: #1e3a8a !important; /* 강제 남색 */
    margin: 0 0 6px 0;
}

.look-for-item p {
    font-size: 14px;
    color: #1a202c !important; /* 강제 진한 검정 */
    margin: 0;
    line-height: 1.6 !important;
}

/* Career Items */
.career-item {
    background: #f7fafc;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 16px;
    border-left: 4px solid #48bb78;
}

.career-item h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1a202c !important; /* 강제 진한 검정 */
    margin: 0 0 8px 0;
}

.career-item p {
    font-size: 15px;
    color: #1a202c !important; /* 강제 진한 검정 */
    margin: 0;
    line-height: 1.6 !important;
}

/* Responsive for Full Profile */
@media (max-width: 768px) {
    .cam-event-banner {
        padding: 20px 16px;
    }
    
    .event-title {
        font-size: 18px;
    }
    
    .event-description {
        font-size: 14px;
    }
    
    .event-description strong {
        font-size: 16px;
    }
    
    .cam-sticky-nav {
        padding: 12px 8px;
        gap: 4px;
    }
    
    .cam-sticky-nav .nav-item {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .cam-section {
        padding: 20px;
    }
    
    .cam-section-title {
        font-size: 20px;
    }
}

/* Recalculate Button */
.cam-recalc-btn {
    display: block; /* a 태그용 */
    width: 100%;
    padding: 14px 24px;
    background: transparent;
    color: #667eea;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid #667eea;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center; /* a 태그용 */
    text-decoration: none; /* a 태그용 */
    box-sizing: border-box; /* 패딩 포함 너비 */
}
}

.cam-recalc-btn:hover {
    background: #667eea;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .cam-calculator-wrapper {
        padding: 15px;
    }
    
    .cam-header {
        padding: 40px 20px;
    }
    
    .cam-title {
        font-size: 28px;
    }
    
    .cam-subtitle {
        font-size: 16px;
    }
    
    .cam-form-card {
        padding: 30px 20px;
    }
    
    .cam-code {
        font-size: 36px;
    }
}

/* Loading State */
.cam-submit-btn.loading::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 10px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
