/* Custom styles for the new PHP structure */

/* Page Header Styles */
.page-header {
    background: #f8f9fa;
    padding: 60px 0 40px;
    margin-bottom: 40px;
}

.page-title {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #363636;
}

.top-site-detail .page-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-top: 15px;
    color: #f1f1f1;
}

.top-site-other .page-title {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
}

.desc-top-content {
    color: #f5f5f5;
}

.page-description {
    font-size: 16px;
    color: #666;
    margin-bottom: 0;
}

/* Error Page Styles */
.error-section {
    padding: 80px 0;
    text-align: center;
}

.error-content {
    max-width: 600px;
    margin: 0 auto;
}

.error-image {
    margin-bottom: 40px;
}

.error-title {
    font-size: 48px;
    font-weight: 700;
    color: #363636;
    margin-bottom: 20px;
}

.error-desc {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}

.error-actions .button {
    margin: 0 10px;
    display: inline-block;
}

/* About Page Styles */
.about-content {
    padding: 40px 0;
}

.about-content h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #363636;
}

.about-content p {
    font-size: 16px;
    line-height: 1.7;
    color: #666;
    margin-bottom: 20px;
}

.about-content ul {
    list-style: none;
    padding: 0;
}

.about-content ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: #666;
}

.about-content ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #0457ac;
    font-weight: bold;
}



/* Submenu Fixes */
.home-02 .main-menu .sub-menu {
    background-color: #fff !important;
    -webkit-box-shadow: 0 6px 20px rgba(0, 0, 0, 0.175);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.175);
}

.home-02 .main-menu .sub-menu li {
    border-color: rgba(211, 211, 211, 0.2) !important;
}

.home-02 .main-menu .sub-menu li a {
    color: #313131 !important;
    padding: 10px 0;
}

.home-02 .main-menu .sub-menu li a:hover {
    color: #0457ac !important;
}

/* User Profile Link in Header */
.user-nav .user-profile-link {
    color: #0456ab;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-right: 0px;
    padding: 8px 0 8px 15px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: inline-block;
}

.user-nav .user-profile-link:hover {
    background: rgba(255, 255, 255, 0.2);
    text-decoration: none;
    transform: translateY(-1px);
}

.user-nav .user-profile-link i {
    margin-right: 5px;
    font-size: 16px;
}

/* Language Switcher */
.user-nav .language-switcher {
    display: inline-block;
    margin-left: 15px;
}

.user-nav .language-switcher a {
    color: #333;
    text-decoration: none;
    font-size: 13px;
    font-weight: normal;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f8f9fa;
    transition: all 0.3s;
}

.user-nav .language-switcher a:hover {
    color: #fff;
    background: #0457ac;
    border-color: #0457ac;
    text-decoration: none;
}

/* Checkout/Basket Styles */
.table-purchase {
    margin: 0px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.list-item-checkout {
    width: 100%;
    border-collapse: collapse;
}

.list-item-checkout thead th {
    background: #f8f9fa;
    padding: 18px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #555;
    border-bottom: 2px solid #e0e0e0;
}

.list-item-checkout tbody td {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

/* Item Info Cell */
.list-item-checkout .item-info {
    width: 50%;
}

.list-item-checkout .item-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.list-item-checkout .item-image {
    flex-shrink: 0;
}

.list-item-checkout .item-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease;
}

.list-item-checkout .item-image:hover img {
    transform: scale(1.05);
}

.list-item-checkout .item-details {
    flex: 1;
}

.list-item-checkout .item-title {
    color: #333;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    line-height: 1.4;
    display: block;
}

.list-item-checkout .item-title:hover {
    color: #667eea;
}

/* Price Cell */
.list-item-checkout .item-price {
    width: 25%;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: #667eea;
}

/* Actions Cell */
.list-item-checkout .item-actions {
    width: 25%;
    text-align: center;
}

.list-item-checkout .remove-btn {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 20px;
    border: 1px solid #e74c3c;
    border-radius: 4px;
    display: inline-block;
    transition: all 0.3s ease;
}

.list-item-checkout .remove-btn:hover {
    background: #e74c3c;
    color: #fff;
    text-decoration: none;
}

/* Footer Total */
.list-item-checkout tfoot .total-row {
    padding: 25px 20px;
    text-align: right;
    background: #f8f9fa;
    border-top: 2px solid #e0e0e0;
}

.list-item-checkout .total-label {
    font-size: 18px;
    font-weight: 600;
    color: #555;
    margin-right: 15px;
}

.list-item-checkout .total-amount {
    font-size: 28px;
    font-weight: 700;
    color: #667eea;
}

/* Checkout Actions */
.checkout-actions {
    text-align: center;
    margin: 40px 0 60px;
}

.checkout-actions .button {
    height: 70px;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    margin: 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.checkout-actions .btn-payment {
    background: #27ae60;
    color: #fff;
    border: 2px solid #27ae60;
}

.checkout-actions .btn-payment:hover {
    background: #229954;
    border-color: #229954;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
}

.checkout-actions .btn-continue {
    background: #fff;
    color: #666;
    border: 2px solid #ddd;
}

.checkout-actions .btn-continue:hover {
    background: #f8f9fa;
    border-color: #bbb;
    color: #333;
}

.checkout-actions .button i {
    margin-right: 8px;
    font-size: 18px;
}

/* Normal Bootstrap layout - items start from left */

/* Purchase History Styles */
.purchase-inner-ct .header-info {
    margin-bottom: 30px;
}

.purchase-inner-ct .header-info .title {
    /* font-size: 24px;
    font-weight: 600;
    color: #333; */
    margin: 0;
}

.list-purchase {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.list-purchase thead th {
    background: #f8f9fa;
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #555;
    border-bottom: 2px solid #e0e0e0;
}

.list-purchase tbody td {
    padding: 5px 20px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
    color: #666;
}

.list-purchase tbody tr:hover {
    background: #fafbfc;
}

.list-purchase tbody td a {
    color: #0457ac;
    text-decoration: none;
}

.list-purchase tbody td a:hover {
    text-decoration: underline;
}

.list-purchase .tb-date {
    width: 20%;
}

.list-purchase .tb-details {
    width: 30%;
}

.list-purchase .tb-amount {
    width: 15%;
}

.list-purchase .tb-status {
    width: 15%;
    text-align: center;
}

.list-purchase .tb-download {
    /* width: 20%; */
    text-align: center;
}

.list-purchase .download-link {
    transition: all 0.3s ease;
}

.list-purchase .download-link:hover i {
    color: #2980b9;
    transform: scale(1.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-title {
        font-size: 28px;
    }
    
    .error-title {
        font-size: 36px;
    }
    
    .error-actions .button {
        display: block;
        margin: 10px auto;
        width: 200px;
    }
    
    .user-nav {
        margin-left: 10px;
        margin-top: 10px;
    }
    
    /* Checkout responsive */
    .list-item-checkout thead {
        display: none;
    }
    
    .list-item-checkout tbody tr {
        display: block;
        margin-bottom: 20px;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        overflow: hidden;
    }
    
    .list-item-checkout tbody td {
        display: block;
        width: 100% !important;
        text-align: left !important;
        padding: 15px;
    }
    
    .list-item-checkout .item-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .list-item-checkout .item-image img {
        width: 100%;
        height: auto;
        max-width: 200px;
    }
    
    .list-item-checkout .item-price {
        font-size: 24px;
        padding: 10px 15px !important;
    }
    
    .list-item-checkout .item-price:before {
        content: "ფასი: ";
        font-weight: 500;
        color: #666;
    }
    
    .list-item-checkout .item-actions {
        text-align: center !important;
    }
    
    .list-item-checkout .remove-btn {
        width: 100%;
        display: block;
    }
    
    .checkout-actions .button {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
    
    /* Purchase History responsive */
    .list-purchase thead {
        display: none;
    }
    
    .list-purchase tbody tr {
        display: block;
        margin-bottom: 20px;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        overflow: hidden;
    }
    
    .list-purchase tbody td {
        display: block;
        width: 100% !important;
        text-align: left !important;
        padding: 12px 15px;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .list-purchase tbody td:last-child {
        border-bottom: none;
    }
    
    .list-purchase tbody td:before {
        content: attr(data-label);
        font-weight: 600;
        display: inline-block;
        margin-right: 10px;
        color: #333;
    }
    
}

/* Alert Messages */
.alert-info {
    animation: slideDown 0.5s ease;
}

/* Success Alert Message */
.alert-success-message {
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.alert-success-message.fade-out {
    animation: fadeOut 0.5s ease forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Delete Account Button */
.delete-account-btn {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 20px;
}

.delete-account-btn i {
    font-size: 20px;
}

.delete-account-btn:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.delete-account-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(231, 76, 60, 0.3);
}

/* Modal Overlay */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Modal Content */
.modal-content {
    background: #fff;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    overflow: hidden;
}

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

/* Modal Header */
.modal-header {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.modal-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Modal Body */
.modal-body {
    padding: 40px 30px;
    text-align: center;
}

.warning-icon {
    margin-bottom: 20px;
}

.warning-icon i {
    font-size: 64px;
    color: #f39c12;
    animation: pulse 2s infinite;
}

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

.modal-message {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

/* Modal Footer */
.modal-footer {
    padding: 20px 30px 30px;
}

.modal-footer form {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-cancel,
.btn-confirm-delete {
    padding: 12px 30px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
}

.btn-cancel {
    background: #95a5a6;
    color: #fff;
}

.btn-cancel:hover {
    background: #7f8c8d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(149, 165, 166, 0.3);
}

.btn-confirm-delete {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
}

.btn-confirm-delete:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

.btn-cancel:active,
.btn-confirm-delete:active {
    transform: translateY(0);
}

/* Responsive Modal */
@media (max-width: 576px) {
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-header h3 {
        font-size: 18px;
    }
    
    .modal-body {
        padding: 30px 20px;
    }
    
    .warning-icon i {
        font-size: 48px;
    }
    
    .modal-message {
        font-size: 15px;
    }
    
    .modal-footer form {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-cancel,
    .btn-confirm-delete {
        width: 100%;
        min-width: auto;
    }
    
    .delete-account-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }
}