/* Contract Detail Page Styles - Professional Modern Soft Design with Color Variables */

/* Contract Container */
.page--container {
    min-height: 50vh;
    padding: 20px 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        rgba(248, 249, 250, 0.8) 0%,
        rgba(255, 255, 255, 0.95) 50%,
        rgba(248, 249, 250, 0.8) 100%
    );
}

.page--container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(212, 175, 55, 0.02) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

.page--wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Contract Card */
.page--card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 32px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.06),
        0 4px 16px rgba(0, 0, 0, 0.04),
        0 1px 0 rgba(255, 255, 255, 0.8) inset;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    max-width: 1000px;
    width: 100%;
    margin: 0 20px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    position: relative;
}

/* Contract Header */
.page--header {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(248, 249, 250, 0.95) 100%
    );
    padding: 40px 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page--header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(212, 175, 55, 0.02) 0%,
        transparent 30%,
        transparent 70%,
        rgba(212, 175, 55, 0.03) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.page--header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(212, 175, 55, 0.2) 50%,
        transparent 100%
    );
}

.page--header-content {
    position: relative;
    z-index: 2;
}

.page--title {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 16px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'Helvetica Neue', sans-serif;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.page--meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.page--date {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(212, 175, 55, 0.12));
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 25px;
    font-weight: 500;
    transition: all var(--transition-fast) ease;
}

.page--date:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(212, 175, 55, 0.18));
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-1px);
}

.page--date i {
    color: var(--accent-gold);
    font-size: 1rem;
}

/* Contract Body */
.page--body {
    padding: 50px 50px 60px;
    background: rgba(255, 255, 255, 0.98);
    position: relative;
}

/* Contract Content */
.page--content {
    margin-bottom: 40px;
}

.page--text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    text-align: justify;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'Helvetica Neue', sans-serif;
}

.page--text p {
    margin-bottom: 20px;
}

.page--text h1,
.page--text h2,
.page--text h3,
.page--text h4,
.page--text h5,
.page--text h6 {
    color: var(--text-primary);
    font-weight: 600;
    margin: 30px 0 15px 0;
}

.page--text h1 { font-size: 1.8rem; }
.page--text h2 { font-size: 1.6rem; }
.page--text h3 { font-size: 1.4rem; }
.page--text h4 { font-size: 1.2rem; }
.page--text h5 { font-size: 1.1rem; }
.page--text h6 { font-size: 1rem; }

.page--text ul,
.page--text ol {
    margin: 20px 0;
    padding-left: 30px;
}

.page--text li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.page--text strong {
    color: var(--text-primary);
    font-weight: 600;
}

.page--text em {
    color: var(--accent-gold);
    font-style: italic;
}

/* Contract Actions */
.page--actions {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-dark);
}

.page--actions-card {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 40px;
    background: rgba(248, 249, 250, 0.3);
    border-radius: 24px;
    border: 1px solid var(--border-dark);
    position: relative;
    overflow: hidden;
}

.page--actions-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(212, 175, 55, 0.02) 0%,
        transparent 50%
    );
    z-index: 1;
    pointer-events: none;
}

.page--actions-card > * {
    position: relative;
    z-index: 2;
}

.page--actions-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-gold), rgba(212, 175, 55, 0.8));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 
        0 8px 25px rgba(212, 175, 55, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.page--actions-icon i {
    font-size: 2rem;
    color: white;
}

.page--actions-content {
    flex: 1;
}

.page--actions-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 12px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'Helvetica Neue', sans-serif;
    letter-spacing: -0.01em;
}

.page--actions-text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 25px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'Helvetica Neue', sans-serif;
    opacity: 0.9;
}

.page--actions-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.page--actions-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 16px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'Helvetica Neue', sans-serif;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.page--actions-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.page--actions-btn:hover::before {
    left: 100%;
}

.page--actions-btn-primary {
    background: linear-gradient(135deg, var(--accent-gold), rgba(212, 175, 55, 0.9));
    color: white;
    box-shadow: 
        0 6px 20px rgba(212, 175, 55, 0.25),
        0 3px 10px rgba(0, 0, 0, 0.04);
}

.page--actions-btn-primary:hover {
    background: linear-gradient(135deg, rgba(244, 208, 63, 0.98), #e6c547);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 8px 25px rgba(212, 175, 55, 0.35),
        0 4px 15px rgba(0, 0, 0, 0.06);
}

.page--actions-btn-secondary {
    background: rgba(248, 249, 250, 0.8);
    color: var(--text-primary);
    border: 1px solid var(--border-dark);
}

.page--actions-btn-secondary:hover {
    background: rgba(212, 175, 55, 0.08);
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.08),
        0 3px 10px rgba(0, 0, 0, 0.04);
}

.page--actions-btn i {
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page--container {
        padding: 30px 0;
    }
    
    .page--wrapper {
        min-height: auto;
        align-items: flex-start;
        padding-top: 20px;
    }
    
    .page--card {
        margin: 0 15px;
        border-radius: 24px;
        max-width: none;
    }
    
    .page--header {
        padding: 35px 30px 25px;
    }
    
    .page--title {
        font-size: 2rem;
        margin-bottom: 12px;
    }
    
    .page--meta {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .page--date {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .page--body {
        padding: 40px 30px 50px;
    }
    
    .page--text {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .page--text h1 { font-size: 1.5rem; }
    .page--text h2 { font-size: 1.3rem; }
    .page--text h3 { font-size: 1.2rem; }
    .page--text h4 { font-size: 1.1rem; }
    .page--text h5 { font-size: 1rem; }
    .page--text h6 { font-size: 0.95rem; }
    
    .page--actions {
        margin-top: 50px;
        padding-top: 35px;
    }
    
    .page--actions-card {
        flex-direction: column;
        gap: 25px;
        padding: 35px 30px;
        text-align: center;
    }
    
    .page--actions-icon {
        width: 70px;
        height: 70px;
        margin: 0 auto;
    }
    
    .page--actions-icon i {
        font-size: 1.75rem;
    }
    
    .page--actions-title {
        font-size: 1.375rem;
        margin-bottom: 10px;
    }
    
    .page--actions-text {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
    
    .page--actions-buttons {
        justify-content: center;
        gap: 12px;
    }
    
    .page--actions-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .page--container {
        padding: 20px 0;
    }
    
    .page--wrapper {
        padding-top: 15px;
    }
    
    .page--card {
        margin: 0 10px;
        border-radius: 20px;
    }
    
    .page--header {
        padding: 30px 25px 20px;
    }
    
    .page--title {
        font-size: 1.75rem;
        margin-bottom: 10px;
    }
    
    .page--date {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .page--body {
        padding: 35px 25px 45px;
    }
    
    .page--text {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .page--text ul,
    .page--text ol {
        padding-left: 20px;
    }
    
    .page--actions {
        margin-top: 40px;
        padding-top: 30px;
    }
    
    .page--actions-card {
        gap: 20px;
        padding: 30px 25px;
        border-radius: 20px;
    }
    
    .page--actions-icon {
        width: 60px;
        height: 60px;
    }
    
    .page--actions-icon i {
        font-size: 1.5rem;
    }
    
    .page--actions-title {
        font-size: 1.25rem;
        margin-bottom: 8px;
    }
    
    .page--actions-text {
        font-size: 0.9rem;
        margin-bottom: 18px;
        line-height: 1.5;
    }
    
    .page--actions-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .page--actions-btn {
        padding: 12px 18px;
        font-size: 0.85rem;
        gap: 6px;
        border-radius: 14px;
        justify-content: center;
    }
    
    .page--actions-btn i {
        font-size: 0.9rem;
    }
}

/* Animation for Contract card */
.page--card {
    animation: contractFadeInUp 0.8s ease-out;
}

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

/* Focus styles for accessibility */
.page--actions-btn:focus {
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .page--card {
        border: 3px solid var(--primary-black);
    }
    
    .page--actions-btn-primary {
        border: 2px solid var(--primary-black);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .page--card,
    .page--actions-btn,
    .page--date {
        animation: none;
        transition: none;
    }
    
    .page--card:hover,
    .page--actions-btn:hover,
    .page--date:hover {
        transform: none;
    }
}

/* Print Styles */
@media print {
    .page--container {
        background: var(--pure-white);
        padding: 0;
    }
    
    .page--card {
        box-shadow: none;
        border: none;
        background: var(--pure-white);
        border-radius: 0;
    }
    
    .page--header {
        background: var(--pure-white);
        border-bottom: 2px solid var(--primary-black);
    }
    
    .page--title {
        color: var(--primary-black);
    }
    
    .page--date {
        background: none;
        border: 1px solid var(--primary-black);
        color: var(--primary-black);
    }
    
    .page--body {
        background: var(--pure-white);
    }
    
    .page--text {
        color: var(--primary-black);
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .page--text h1,
    .page--text h2,
    .page--text h3,
    .page--text h4,
    .page--text h5,
    .page--text h6,
    .page--text strong {
        color: var(--primary-black);
    }
    
    .page--text em {
        color: var(--primary-black);
        font-weight: 600;
    }
    
    .page--actions {
        display: none;
    }
}
