/* NovaGaming - CSS3 Enhancements */
:root {
    --ng-radius: 8px;
    --ng-radius-lg: 12px;
}

/* Rounded Corners */
.tborder {
    -moz-border-radius: var(--ng-radius-lg);
    -webkit-border-radius: var(--ng-radius-lg);
    border-radius: var(--ng-radius-lg);
}

.tborder tbody tr:last-child > td {
    border-bottom: 0;
}

.tborder tbody tr:last-child > td:first-child {
    -moz-border-radius-bottomleft: calc(var(--ng-radius-lg) - 1px);
    -webkit-border-bottom-left-radius: calc(var(--ng-radius-lg) - 1px);
    border-bottom-left-radius: calc(var(--ng-radius-lg) - 1px);
}

.tborder tbody tr:last-child > td:last-child {
    -moz-border-radius-bottomright: calc(var(--ng-radius-lg) - 1px);
    -webkit-border-bottom-right-radius: calc(var(--ng-radius-lg) - 1px);
    border-bottom-right-radius: calc(var(--ng-radius-lg) - 1px);
}

.thead {
    -moz-border-radius-topleft: var(--ng-radius-lg);
    -moz-border-radius-topright: var(--ng-radius-lg);
    -webkit-border-top-left-radius: var(--ng-radius-lg);
    -webkit-border-top-right-radius: var(--ng-radius-lg);
    border-top-left-radius: var(--ng-radius-lg);
    border-top-right-radius: var(--ng-radius-lg);
}

.thead_collapsed {
    -moz-border-radius-bottomleft: var(--ng-radius-lg);
    -moz-border-radius-bottomright: var(--ng-radius-lg);
    -webkit-border-bottom-left-radius: var(--ng-radius-lg);
    -webkit-border-bottom-right-radius: var(--ng-radius-lg);
    border-bottom-left-radius: var(--ng-radius-lg);
    border-bottom-right-radius: var(--ng-radius-lg);
}

.thead_left {
    -moz-border-radius-topright: 0;
    -webkit-border-top-right-radius: 0;
    border-top-right-radius: 0;
}

.thead_right {
    -moz-border-radius-topleft: 0;
    -webkit-border-top-left-radius: 0;
    border-top-left-radius: 0;
}

.tcat_menu {
    -moz-border-radius: 0 !important;
    -webkit-border-radius: 0 !important;
    border-radius: 0 !important;
}

/* Form Elements Rounded */
button,
input.button,
input.textbox,
input.invalid_field,
input.valid_field,
select,
textarea,
.editor_control_bar,
blockquote,
.codeblock,
fieldset,
.pm_alert,
.red_alert,
.popup_menu,
.postbit_buttons > a,
a.button {
    -moz-border-radius: var(--ng-radius);
    -webkit-border-radius: var(--ng-radius);
    border-radius: var(--ng-radius);
}

.post.classic .post_author {
    -moz-border-radius: 0 var(--ng-radius-lg) var(--ng-radius-lg) 0;
    -webkit-border-radius: 0 var(--ng-radius-lg) var(--ng-radius-lg) 0;
    border-radius: 0 var(--ng-radius-lg) var(--ng-radius-lg) 0;
}

.popup_menu .popup_item_container:first-child .popup_item {
    -moz-border-radius-topleft: var(--ng-radius);
    -moz-border-radius-topright: var(--ng-radius);
    -webkit-border-top-left-radius: var(--ng-radius);
    -webkit-border-top-right-radius: var(--ng-radius);
    border-top-left-radius: var(--ng-radius);
    border-top-right-radius: var(--ng-radius);
}

.popup_menu .popup_item_container:last-child .popup_item {
    -moz-border-radius-bottomleft: var(--ng-radius);
    -moz-border-radius-bottomright: var(--ng-radius);
    -webkit-border-bottom-left-radius: var(--ng-radius);
    -webkit-border-bottom-right-radius: var(--ng-radius);
    border-bottom-left-radius: var(--ng-radius);
    border-bottom-right-radius: var(--ng-radius);
}

.pagination a {
    -moz-border-radius: var(--ng-radius);
    -webkit-border-radius: var(--ng-radius);
    border-radius: var(--ng-radius);
}

.pollbar {
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    border-radius: 3px;
}

div.error {
    -moz-border-radius: var(--ng-radius);
    -webkit-border-radius: var(--ng-radius);
    border-radius: var(--ng-radius);
}

/* First/Last Child Borders */
tr td.trow1:first-child,
tr td.trow2:first-child,
tr td.trow_shaded:first-child {
    border-left: 0;
}

tr td.trow1:last-child,
tr td.trow2:last-child,
tr td.trow_shaded:last-child {
    border-right: 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.5s ease forwards;
}

.animate-slide-in {
    animation: slideIn 0.5s ease forwards;
}

/* Staggered Animation Delays */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* Smooth Transitions */
a, button, input, select, .forum-card, .post, .stats-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover Effects */
.hover-glow:hover {
    box-shadow: 0 0 30px var(--ng-accent-glow);
}

.hover-scale:hover {
    transform: scale(1.02);
}

.hover-lift:hover {
    transform: translateY(-5px);
}
