/* ===================================
   웨딩센스 - 컴포넌트 스타일 CSS
   style-component.css
   =================================== */

/* ===================================
   Pagination Component
   =================================== */
.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
}

.page-item {
    display: inline-block;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text);
    background: var(--white);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-medium);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.page-link:hover {
    color: var(--color-primary);
    background: var(--color-primary-light);
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.2);
}

.page-item.active .page-link {
    color: var(--white);
    background: linear-gradient(135deg, #ff6b9d 0%, #e8b4b8 100%);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

.page-item.disabled .page-link {
    color: var(--color-text-muted);
    background: var(--color-background);
    border-color: var(--color-border);
    cursor: not-allowed;
    opacity: 0.6;
}

.page-item.disabled .page-link:hover {
    transform: none;
    box-shadow: none;
    color: var(--color-text-muted);
    background: var(--color-background);
    border-color: var(--color-border);
}

/* Pagination Ellipsis */
.page-item.disabled .page-link {
    min-width: 30px;
}

/* ===================================
   Breadcrumb Component
   =================================== */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    list-style: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-medium);
}

.breadcrumb-item {
    font-size: 0.95rem;
}

.breadcrumb-item + .breadcrumb-item {
    padding-left: 0.5rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    display: inline-block;
    padding-right: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    content: "›";
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition-base);
}

.breadcrumb-item a:hover {
    color: var(--white);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--white);
    font-weight: 500;
}

/* ===================================
   Button Components
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-medium);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary {
    color: var(--white);
    background: linear-gradient(135deg, #ff6b9d 0%, #e8b4b8 100%);
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #e85d8c 0%, #d4a0a4 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 93, 140, 0.4);
}

.btn-secondary {
    color: var(--color-primary);
    background: var(--white);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    color: var(--white);
    background: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

.btn-outline {
    color: var(--color-text);
    background: transparent;
    border: 2px solid var(--color-border);
}

.btn-outline:hover {
    color: var(--color-primary);
    background: var(--color-primary-light);
    border-color: var(--color-primary);
}

/* ===================================
   Card Components
   =================================== */
.card {
    background: var(--white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--color-primary-light);
}

.card-header {
    padding: 1.5rem;
    background: var(--color-background);
    border-bottom: 1px solid var(--color-border);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1.5rem;
    background: var(--color-background);
    border-top: 1px solid var(--color-border);
}

/* ===================================
   Badge Components
   =================================== */
.badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: var(--radius-full);
    transition: var(--transition-base);
}

.badge-primary {
    color: var(--white);
    background: var(--color-primary);
}

.badge-secondary {
    color: var(--white);
    background: var(--color-secondary);
}

.badge-success {
    color: var(--white);
    background: var(--color-success);
}

.badge-warning {
    color: var(--color-text);
    background: var(--color-warning);
}

.badge-danger {
    color: var(--white);
    background: var(--color-danger);
}

/* ===================================
   Form Components
   =================================== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-text);
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-text);
    background-color: var(--white);
    background-clip: padding-box;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-medium);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    color: var(--color-text);
    background-color: var(--white);
    border-color: var(--color-primary);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 157, 0.25);
}

/* ===================================
   Alert Components
   =================================== */
.alert {
    position: relative;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: var(--radius-medium);
}

.alert-primary {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}

.alert-success {
    color: #0f5132;
    background-color: #d1e7dd;
    border-color: #badbcc;
}

.alert-warning {
    color: #664d03;
    background-color: #fff3cd;
    border-color: #ffecb5;
}

.alert-info {
    color: #055160;
    background-color: #cff4fc;
    border-color: #b6effb;
}

/* ===================================
   Modal Components
   =================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    display: none;
    width: 100%;
    height: 100%;
    overflow: hidden;
    outline: 0;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: 1.75rem auto;
    pointer-events: none;
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: var(--white);
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-large);
    outline: 0;
}

.modal-header {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    flex-wrap: wrap;
    flex-shrink: 0;
    align-items: center;
    justify-content: flex-end;
    padding: 1.25rem;
    border-top: 1px solid var(--color-border);
    gap: 0.5rem;
}

/* ===================================
   Dropdown Components
   =================================== */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    min-width: 10rem;
    padding: 0.5rem 0;
    margin: 0.125rem 0 0;
    font-size: 1rem;
    color: var(--color-text);
    text-align: left;
    list-style: none;
    background-color: var(--white);
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-medium);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 0.5rem 1.5rem;
    clear: both;
    font-weight: 400;
    color: var(--color-text);
    text-align: inherit;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    transition: var(--transition-base);
}

.dropdown-item:hover {
    color: var(--color-primary);
    background-color: var(--color-primary-light);
}

/* ===================================
   Tab Components
   =================================== */
.nav-tabs {
    display: flex;
    flex-wrap: wrap;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
    border-bottom: 2px solid var(--color-border);
}

.nav-tabs .nav-item {
    margin-bottom: -2px;
}

.nav-tabs .nav-link {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--color-text-light);
    text-decoration: none;
    background-color: transparent;
    border: 2px solid transparent;
    border-bottom: none;
    transition: var(--transition-base);
}

.nav-tabs .nav-link:hover {
    color: var(--color-primary);
    border-color: transparent;
}

.nav-tabs .nav-link.active {
    color: var(--color-primary);
    background-color: var(--white);
    border-color: var(--color-border) var(--color-border) var(--white);
    font-weight: 600;
}

/* ===================================
   Responsive Utilities
   =================================== */
@media (max-width: 768px) {
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .page-link {
        min-width: 35px;
        height: 35px;
        font-size: 0.875rem;
    }
    
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.95rem;
    }
}