/* ============================================================================
   INTERACTIVE STAMP BUTTONS - ALL DESIGNS
   ============================================================================ */

/* Base stamp button styles */
.stamp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
    user-select: none;
    position: relative;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stamp-label {
    display: block;
    white-space: nowrap;
    font-size: 12px;
    color: var(--text-color, #ffffff);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ============================================================================
   MINIMAL DESIGN
   ============================================================================ */
.stamp-minimal {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bg-color, #FFD700), var(--bg-color, #FFD700));
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid var(--bg-color, #FFD700);
}

.stamp-minimal:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.stamp-minimal:active {
    transform: scale(0.95) translateY(0px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.stamp-minimal .stamp-label {
    text-align: center;
    line-height: 1.2;
    max-width: 85%;
}

/* ============================================================================
   MODERN DESIGN - Hexagonal with glass morphism
   ============================================================================ */
.stamp-modern {
    width: 110px;
    height: 110px;
}

.stamp-hex-outer {
    width: 100%;
    height: 100%;
    position: relative;
    clip-path: polygon(50% 0%, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%);
    background: linear-gradient(135deg, var(--bg-color, #007BFF), var(--bg-color, #007BFF));
    box-shadow: 0 8px 32px rgba(0, 123, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.stamp-hex-inner {
    width: 95%;
    height: 95%;
    clip-path: polygon(50% 0%, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%);
    background: linear-gradient(135deg, var(--bg-color, #007BFF) 99%, var(--bg-color, #007BFF));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.stamp-hex-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3), transparent);
    clip-path: polygon(50% 0%, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%);
}

.stamp-modern:hover .stamp-hex-outer {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 48px rgba(0, 123, 255, 0.4);
}

.stamp-modern:active .stamp-hex-outer {
    transform: scale(0.95) rotate(0deg);
}

/* ============================================================================
   ORNATE DESIGN - Golden decorative
   ============================================================================ */
.stamp-ornate {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #FFF8E7, var(--bg-color, #FFD700));
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5), inset 0 2px 5px rgba(255, 255, 255, 0.5);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stamp-ornate-ring {
    position: absolute;
    top: 8%;
    left: 8%;
    right: 8%;
    bottom: 8%;
    border: 3px solid var(--bg-color, #FFD700);
    border-radius: 50%;
    opacity: 0.6;
}

.stamp-ornate-shine {
    position: absolute;
    top: 20%;
    left: 20%;
    width: 30%;
    height: 30%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8), transparent);
    border-radius: 50%;
    filter: blur(8px);
}

.stamp-ornate:hover {
    transform: scale(1.12) rotateZ(-3deg);
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.7), inset 0 2px 5px rgba(255, 255, 255, 0.7);
}

.stamp-ornate:active {
    transform: scale(0.95);
}

/* ============================================================================
   VINTAGE DESIGN - Brown seal with texture
   ============================================================================ */
.stamp-vintage {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    position: relative;
    filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.3));
}

.stamp-vintage-outer {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bg-color, #8B6F47), var(--bg-color, #6B5437));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3), inset 0 -2px 5px rgba(255, 255, 255, 0.1);
}

.stamp-vintage-texture {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(0, 0, 0, 0.03) 2px, rgba(0, 0, 0, 0.03) 4px),
        repeating-linear-gradient(-45deg, transparent, transparent 2px, rgba(255, 255, 255, 0.02) 2px, rgba(255, 255, 255, 0.02) 4px);
    border: 2px dashed var(--bg-color, #8B6F47);
}

.stamp-vintage .stamp-label {
    position: relative;
    z-index: 1;
    font-style: italic;
    filter: drop-shadow(1px 1px 0 rgba(0, 0, 0, 0.2));
}

.stamp-vintage:hover {
    transform: scale(1.08) rotateY(5deg);
}

.stamp-vintage:active {
    transform: scale(0.96);
}

/* ============================================================================
   OFFICIAL DESIGN - Government stamp
   ============================================================================ */
.stamp-official {
    width: 115px;
    height: 140px;
    background: linear-gradient(to right, var(--bg-color, #003366), var(--bg-color, #004488));
    border: 3px solid var(--bg-color, #003366);
    box-shadow: 0 6px 20px rgba(0, 51, 102, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    gap: 8px;
}

.stamp-official-header {
    width: 100%;
    background: var(--bg-color, #003366);
    color: var(--text-color, #ffffff);
    text-align: center;
    padding: 6px 0;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.stamp-official-border {
    position: absolute;
    top: 4%;
    left: 4%;
    right: 4%;
    bottom: 4%;
    border: 2px dashed rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

.stamp-official .stamp-label {
    position: relative;
    z-index: 1;
    font-size: 11px;
}

.stamp-official:hover {
    transform: scale(1.08) skewY(-2deg);
    box-shadow: 0 8px 28px rgba(0, 51, 102, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.stamp-official:active {
    transform: scale(0.95) skewY(0deg);
}

/* ============================================================================
   PATENT SEAL DESIGN - Circular badge with rings
   ============================================================================ */
.stamp-patent {
    width: 115px;
    height: 115px;
    border-radius: 50%;
    position: relative;
    background: linear-gradient(135deg, var(--bg-color, #DC143C), var(--bg-color, #8B0000));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(139, 0, 0, 0.4);
}

.stamp-patent-ring-outer {
    position: absolute;
    top: 5%;
    left: 5%;
    right: 5%;
    bottom: 5%;
    border: 2px solid var(--text-color, #ffffff);
    border-radius: 50%;
}

.stamp-patent-ring-middle {
    position: absolute;
    top: 15%;
    left: 15%;
    right: 15%;
    bottom: 15%;
    border: 2px solid var(--text-color, #ffffff);
    border-radius: 50%;
    opacity: 0.7;
}

.stamp-patent-ring-inner {
    position: absolute;
    top: 25%;
    left: 25%;
    right: 25%;
    bottom: 25%;
    border: 2px solid var(--text-color, #ffffff);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.stamp-patent:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 12px 36px rgba(139, 0, 0, 0.5);
}

.stamp-patent:hover .stamp-patent-ring-outer {
    animation: spin 3s linear infinite;
}

.stamp-patent:active {
    transform: scale(0.95) rotate(0deg);
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================================================================
   ANIMATION UTILITIES
   ============================================================================ */

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

/* Apply pulse animation on hover for all stamps */
.stamp-button:hover {
    animation: pulse 1.5s ease-in-out infinite;
}

/* ============================================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================================ */

@media (max-width: 768px) {
    .stamp-button {
        transform: scale(0.9);
    }
    
    .stamp-minimal {
        width: 85px;
        height: 85px;
    }
    
    .stamp-modern {
        width: 90px;
        height: 90px;
    }
    
    .stamp-ornate {
        width: 100px;
        height: 100px;
    }
    
    .stamp-vintage {
        width: 95px;
        height: 95px;
    }
    
    .stamp-official {
        width: 100px;
        height: 120px;
    }
    
    .stamp-patent {
        width: 100px;
        height: 100px;
    }
}

/* Accessibility - Remove animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .stamp-button {
        transition: none;
    }
    
    .stamp-button:hover {
        animation: none;
    }
    
    .stamp-button:hover .stamp-patent-ring-outer {
        animation: none;
    }
}
