/* assets/css/frontend.css */

/* 컨테이너 */
.anm-newsletter-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 카드 그리드 */
.anm-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

@media (max-width: 1024px) {
    .anm-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .anm-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* 카드 스타일 */
.anm-card {
    background: #f8f9fa;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.anm-card:hover {
    background: #6ba4c4;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.anm-card:hover .anm-card-content {
    color: #ffffff;
}

.anm-card:hover .anm-card-date,
.anm-card:hover .anm-card-source {
    color: rgba(255, 255, 255, 0.8);
}

.anm-card:hover .anm-card-link {
    color: #ffffff;
}

.anm-card:hover .arrow {
    transform: translateX(5px);
}

.anm-card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.anm-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.anm-card:hover .anm-card-image img {
    transform: scale(1.05);
}

.anm-card-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.anm-card-date {
    font-size: 13px;
    color: #999;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.anm-card-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 20px 0;
    color: #2c3e50;
    flex: 1;
}

.anm-card:hover .anm-card-title {
    color: #ffffff;
}

.anm-card-source {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.anm-card-link {
    display: inline-flex;
    align-items: center;
    color: #6ba4c4;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    margin-top: auto;
}

.anm-card-link .arrow {
    margin-left: 8px;
    transition: transform 0.3s ease;
    display: inline-block;
}

/* 슬라이더 컨테이너 */
.anm-slider-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 60px;
}

.anm-slider {
    overflow: hidden;
    position: relative;
}

.anm-slide {
    display: none;
    padding: 40px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    min-height: 400px;
}

.anm-slide.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.anm-slide-date {
    font-size: 13px;
    color: #999;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.anm-slide-title {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 25px 0;
    color: #2c3e50;
}

.anm-slide-content {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
}

.anm-slide-link {
    display: inline-block;
    color: #6ba4c4;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.anm-slide-link:hover {
    border-bottom-color: #6ba4c4;
}

/* 슬라이더 버튼 */
.anm-slider-prev,
.anm-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #6ba4c4;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    font-size: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.anm-slider-prev:hover,
.anm-slider-next:hover {
    background: #5a92af;
}

.anm-slider-prev {
    left: 0;
}

.anm-slider-next {
    right: 0;
}

/* 슬라이더 도트 */
.anm-slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.anm-slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.anm-slider-dots .dot.active {
    background: #6ba4c4;
    width: 30px;
    border-radius: 6px;
}

/* 폼 스타일 */
.anm-form-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
}

.anm-form-group {
    margin-bottom: 25px;
}

.anm-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 15px;
}

.anm-form-group input[type="text"],
.anm-form-group input[type="url"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    font-size: 15px;
    transition: border-color 0.3s ease;
}

.anm-form-group input:focus {
    outline: none;
    border-color: #6ba4c4;
}

.anm-submit-btn {
    background: #6ba4c4;
    color: white;
    padding: 14px 40px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.anm-submit-btn:hover {
    background: #5a92af;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(107, 164, 196, 0.3);
}

#anm-form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    display: none;
}

#anm-form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

#anm-form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* 뉴스레터 상세 뷰 스타일 */
.anm-view-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.anm-view-header {
    margin-bottom: 30px;
}

.anm-view-back {
    display: inline-flex;
    align-items: center;
    color: #6ba4c4;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    padding: 10px 0;
}

.anm-view-back:hover {
    color: #5a92af;
    transform: translateX(-5px);
}

.anm-view-article {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    overflow: hidden;
}

.anm-view-image {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
}

.anm-view-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.anm-view-meta {
    padding: 40px;
    border-bottom: 1px solid #e0e0e0;
}

.anm-view-date {
    font-size: 13px;
    color: #999;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.anm-view-title {
    font-size: 36px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 20px 0;
    color: #2c3e50;
}

.anm-view-source {
    font-size: 15px;
    color: #666;
    font-style: italic;
}

.anm-view-content {
    padding: 40px;
}

.anm-view-newsletter-content,
.anm-view-post-content {
    font-size: 17px;
    line-height: 1.9;
    color: #333;
}

.anm-view-newsletter-content p,
.anm-view-post-content p {
    margin-bottom: 20px;
}

.anm-view-newsletter-content h1,
.anm-view-newsletter-content h2,
.anm-view-newsletter-content h3,
.anm-view-post-content h1,
.anm-view-post-content h2,
.anm-view-post-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #2c3e50;
    font-weight: 600;
}

.anm-view-newsletter-content img,
.anm-view-post-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 4px;
}

.anm-view-newsletter-content ul,
.anm-view-newsletter-content ol,
.anm-view-post-content ul,
.anm-view-post-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.anm-view-newsletter-content li,
.anm-view-post-content li {
    margin-bottom: 10px;
}

.anm-view-newsletter-content a,
.anm-view-post-content a {
    color: #6ba4c4;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.anm-view-newsletter-content a:hover,
.anm-view-post-content a:hover {
    border-bottom-color: #6ba4c4;
}

.anm-view-footer {
    padding: 30px 40px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.anm-view-external-link {
    display: inline-flex;
    align-items: center;
    color: #6ba4c4;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 12px 30px;
    border: 2px solid #6ba4c4;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.anm-view-external-link:hover {
    background: #6ba4c4;
    color: #ffffff;
}

.anm-view-external-link .arrow {
    margin-left: 8px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.anm-view-external-link:hover .arrow {
    transform: translateX(5px);
}

.anm-view-error {
    max-width: 1000px;
    margin: 40px auto;
    padding: 30px;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    text-align: center;
}

@media (max-width: 768px) {
    .anm-view-container {
        padding: 20px 15px;
    }
    
    .anm-view-title {
        font-size: 28px;
    }
    
    .anm-view-meta,
    .anm-view-content,
    .anm-view-footer {
        padding: 25px 20px;
    }
    
    .anm-view-newsletter-content,
    .anm-view-post-content {
        font-size: 16px;
    }
}