/* ============================================
   SÖZLEŞME DETAY SAYFASI STİLLERİ
   ============================================ */

.agreement-detail-page {
    padding: 2rem 0;
    background: #f8f9fa;
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #6c757d;
}

.breadcrumb a {
    color: #ff6b35;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.separator {
    margin: 0 0.5rem;
    color: #dee2e6;
}

.current {
    color: #495057;
    font-weight: 500;
}

/* Agreement Header */
.agreement-header {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.agreement-title {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
}

.agreement-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.meta-item .label {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-item .value {
    font-size: 1rem;
    color: #2c3e50;
    font-weight: 600;
}

/* Consent Section */
.consent-section {
    border-top: 1px solid #e9ecef;
    padding-top: 1.5rem;
}

.consent-status.approved {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
    border-radius: 10px;
    color: #155724;
}

.consent-status.approved i {
    font-size: 1.5rem;
    color: #28a745;
}

.status-text strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.status-text small {
    color: #6c757d;
    font-size: 0.85rem;
}

.consent-section-actions {
    text-align: center;
}

.btn-consent {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.btn-consent:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.btn-consent:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.consent-note {
    display: block;
    color: #6c757d;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.login-required {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 10px;
    color: #856404;
}

.login-required a {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 500;
}

.login-required a:hover {
    text-decoration: underline;
}

/* Agreement Content */
.agreement-content {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.content-wrapper {
    font-size: 1rem;
    color: #333;
    line-height: 1.8;
}

.content-wrapper h1,
.content-wrapper h2,
.content-wrapper h3,
.content-wrapper h4 {
    color: #2c3e50;
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
}

.content-wrapper h1 {
    font-size: 1.8rem;
    border-bottom: 3px solid #ff6b35;
    padding-bottom: 0.8rem;
    margin-top: 0;
}

.content-wrapper h2 {
    font-size: 1.4rem;
    color: #ff6b35;
    font-weight: 700;
}

.content-wrapper h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

.content-wrapper p {
    margin-bottom: 1.5rem;
    text-align: justify;
    color: #444;
}

.content-wrapper strong {
    color: #2c3e50;
    font-weight: 600;
}

.content-wrapper ul,
.content-wrapper ol {
    margin-bottom: 1.5rem;
    padding-left: 2.5rem;
}

.content-wrapper li {
    margin-bottom: 0.8rem;
    line-height: 1.7;
}

.content-wrapper hr {
    border: none;
    border-top: 2px solid #e9ecef;
    margin: 2rem 0;
}

/* Sözleşme içindeki özel kutuları stillendir */
.content-wrapper blockquote {
    background: #f8f9fa;
    border-left: 4px solid #ff6b35;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
}

/* Madde numaraları için */
.content-wrapper strong:contains("MADDE") {
    display: block;
    margin-top: 2rem;
    color: #ff6b35;
    font-size: 1.1rem;
}

/* Agreement Footer */
.agreement-footer {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.footer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-back {
    background: #6c757d;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-back:hover {
    background: #5a6268;
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.share-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.share-label {
    color: #6c757d;
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

.btn-share {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #6c757d;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-share:hover {
    background: #e9ecef;
    color: #495057;
    transform: translateY(-1px);
}

/* Related Agreements */
.related-agreements {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.related-agreements h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.related-item {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.related-item:hover {
    border-color: #ff6b35;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.related-item a {
    display: block;
    padding: 1rem;
    text-decoration: none;
    color: inherit;
}

.rel-title {
    display: block;
    color: #2c3e50;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.rel-version {
    color: #6c757d;
    font-size: 0.85rem;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.modal-header h3 {
    color: #28a745;
    margin-bottom: 1rem;
}

.modal-body p {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.btn-modal-close {
    background: #ff6b35;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-modal-close:hover {
    background: #e55a2b;
    transform: translateY(-1px);
}

/* Print Styles */
@media print {
    .agreement-header,
    .agreement-footer,
    .related-agreements,
    .breadcrumb,
    .consent-section {
        display: none !important;
    }
    
    .agreement-content {
        box-shadow: none;
        border: none;
        padding: 0;
    }
    
    .container {
        max-width: 100%;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .agreement-header {
        padding: 1.5rem;
    }
    
    .agreement-title {
        font-size: 1.5rem;
    }
    
    .agreement-meta {
        grid-template-columns: 1fr;
    }
    
    .agreement-content {
        padding: 2rem;
    }
    
    .footer-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .share-section {
        justify-content: center;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .agreement-detail-page {
        padding: 1rem 0;
    }
    
    .agreement-header,
    .agreement-content,
    .agreement-footer,
    .related-agreements {
        padding: 1rem;
    }
    
    .agreement-title {
        font-size: 1.3rem;
    }
    
    .content-wrapper {
        font-size: 1rem;
    }
    
    .btn-consent {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}
